]> git.baikalelectronics.ru Git - kernel.git/commit
staging: bcm2835-camera: add check to avoid null pointer dereference
authorAishwarya Pant <aishpant@gmail.com>
Thu, 9 Mar 2017 19:00:58 +0000 (00:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2017 09:13:07 +0000 (10:13 +0100)
commit006652e047abd829c0fb4dd44ee8dde1ecb8200e
treed127611410bec6ab3e3ee3914e4c952ecda34afc
parent126d40287b8eded18eb8ee9a333e13ac875b803c
staging: bcm2835-camera: add check to avoid null pointer dereference

This patch adds checks after memory allocation to avoid possible null
pointer dereferences.

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