[media] soc-camera: don't dereference I2C client after it has been removed
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 23 Mar 2011 08:26:11 +0000 (05:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 13 Apr 2011 12:55:06 +0000 (09:55 -0300)
commitc8dd707805af100965c93cdca7d61e61165e9c07
tree3e52f277690e46a58b45cd4c6a9f715ef4c989b0
parent3e31f2b9456d0777a41d9d26429d6f2ad6894014
[media] soc-camera: don't dereference I2C client after it has been removed

i2c_unregister_device() frees the I2C client, so, dereferencing it
afterwards is a bug, that leads to Oopses.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_camera.c