[media] V4L2: mt9t031: don't Oops if asynchronous probing is attempted
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 30 Jul 2013 06:34:06 +0000 (03:34 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 18 Aug 2013 12:07:02 +0000 (09:07 -0300)
commit3d238885dbfd5359cd0c12fad858e8638f17bfc6
tree33a95a6b25e1baf40d93390889acdd3ac1288b68
parent4dbfd040757b8bf22f4ac17e80b39c068061a16c
[media] V4L2: mt9t031: don't Oops if asynchronous probing is attempted

The mt9t031 driver hasn't yet been updated to support asynchronous
subdevice probing. If such a probing is attempted, the driver is allowed
to fail, but it shouldn't Oops. This patch fixes such a potential NULL
pointer dereference.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/soc_camera/mt9t031.c