]> git.karo-electronics.de Git - karo-tx-linux.git/commit
media: au0828: fix case where STREAMOFF being called on stopped stream causes BUG()
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Tue, 7 Aug 2012 01:47:03 +0000 (22:47 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Oct 2012 17:02:12 +0000 (10:02 -0700)
commit6613dbb3a2126a2ef4c5763e496afb7975eaa3de
tree7ea741fb6205bf57bb9111835eaa7a60c30b2939
parenta322f9a0799883553a0898c7062a944ff64a3056
media: au0828: fix case where STREAMOFF being called on stopped stream causes BUG()

commit a595c1ce4c9d572cf53513570b9f1a263d7867f2 upstream.

We weren't checking whether the resource was in use before calling
res_free(), so applications which called STREAMOFF on a v4l2 device that
wasn't already streaming would cause a BUG() to be hit (MythTV).

Reported-by: Larry Finger <larry.finger@lwfinger.net>
Reported-by: Jay Harbeston <jharbestonus@gmail.com>
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/au0828/au0828-video.c