From: Devin Heitmueller Date: Tue, 7 Aug 2012 01:47:03 +0000 (-0300) Subject: au0828: fix case where STREAMOFF being called on stopped stream causes BUG() X-Git-Tag: v3.2.33~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad5ca6d13f5c9c2f34f0ebc0dbea3da0e417805b;p=pandora-kernel.git 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 Reported-by: Jay Harbeston Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed