]> git.baikalelectronics.ru Git - kernel.git/commit
staging: bcm2835-camera: prefer allocating memory using sizeof(*ptr) instead of sizeo...
authorAishwarya Pant <aishpant@gmail.com>
Wed, 1 Mar 2017 18:24:01 +0000 (23:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 12:57:17 +0000 (13:57 +0100)
commit219a92efbd30339e11a05e491efdc7f0b2bf1ae5
tree20c9dceb7223a14d2e98a9c9332c9dfbe299aa40
parentdf9538a8f0dd85839f046d84907b98b32453a1dc
staging: bcm2835-camera: prefer allocating memory using sizeof(*ptr) instead of sizeof(struct type name)

Using sizeof(*ptr) instead of sizeof(struct type name) is more robust to
errors.

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c