]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] mt9v022: fix potential NULL pointer dereference in mt9v022_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 29 Nov 2012 02:56:15 +0000 (23:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Jan 2013 03:34:59 +0000 (01:34 -0200)
commitdaf16bab1eaf5a82217697bfb91eb7d9c9745d0d
treee811da4987a71d741c45fef284a28f61e946d823
parent3a799c27b3faebaf5a7a6149dfe8f705451b241f
[media] mt9v022: fix potential NULL pointer dereference in mt9v022_probe()

The dereference to 'icl' should be moved below the NULL test.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/soc_camera/mt9v022.c