]> git.karo-electronics.de Git - linux-beck.git/commit
[media] v4l2-dev.c: Move video_put() after debug printk
authorEzequiel García <elezegarcia@gmail.com>
Thu, 26 Jul 2012 10:59:04 +0000 (07:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 31 Jul 2012 00:11:35 +0000 (21:11 -0300)
commit8f695d3f07bf9fd2914d18d1d2f89e3574b809ff
treee512d4121aec36ca50392601fb35d26698bca041
parentcd779254f92f30cef8d43d0c4345cfeebfc94db8
[media] v4l2-dev.c: Move video_put() after debug printk

It is possible that video_put() releases video_device struct,
provoking a panic when debug printk wants to get video_device node name.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c