commit | 4c1d2fc7d56cf87a0d399be69e08d5aef73802eb | [log] [tgz] |
---|---|---|
author | Benjamin Sherman <benjamin@bensherman.io> | Thu May 30 23:53:48 2019 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu May 30 17:22:47 2019 -0700 |
tree | 1951191001401f29d7b2c0e1b7681c8078668889 | |
parent | d8210b1132db57100ddf5e47b5ce89d7d1b7f55d [diff] |
staging: mt7621-dma: sizeof via pointer dereference Pass the size of a struct into kzalloc by pointer dereference. This complies with the Linux kernel coding style and removes the possibility for a bug if the pointer's type is changed. Signed-off-by: Benjamin Sherman <benjamin@bensherman.io> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>