[media] V4L: mt9t112: use after free in mt9t112_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 7 Nov 2011 18:44:12 +0000 (15:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 11 Dec 2011 11:42:40 +0000 (09:42 -0200)
commit08da558ae0aaa488d8273ee44177c86580ba0d5a
tree33b51edafea4efa438553fd120be247f15dfa7a7
parent4c0b036db808054f10f79e9a3d7928cf90aeb186
[media] V4L: mt9t112: use after free in mt9t112_probe()

priv gets dereferenced in mt9t112_set_params() so we should return
before calling that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mt9t112.c