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)
commita1d76d7a3cb2ba10ee43da559f6a54cc9dd2d26c
treed127611410bec6ab3e3ee3914e4c952ecda34afc
parentfcd1f55359125348f81f4d1b409cd5b391c523e4
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