V4L/DVB (8842): vivi_release(): fix use-after-free
authorAdrian Bunk <bunk@kernel.org>
Wed, 3 Sep 2008 20:12:25 +0000 (17:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 3 Sep 2008 21:37:53 +0000 (18:37 -0300)
commit8da9bae3292ea8aee803e7cda295877c361f0694
treeb50317e39edf3f0d92e704bdfd87b0ea58f78fb1
parent9a0c04a1ee3b4df6a30ae6975e13c558908df400
V4L/DVB (8842): vivi_release(): fix use-after-free

video_device_release() does kfree(), which made the following printk()
doing a use-after-free.

printk() first and release then.

Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/vivi.c