]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-dma: sizeof via pointer dereference
authorBenjamin Sherman <benjamin@bensherman.io>
Thu, 30 May 2019 23:53:48 +0000 (23:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 00:22:47 +0000 (17:22 -0700)
commit781ca79132950952edec260a0e118fe7c41db4d4
tree1951191001401f29d7b2c0e1b7681c8078668889
parentb6e219aad50e05a456847800e678f83a9af0d997
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>
drivers/staging/mt7621-dma/mtk-hsdma.c