]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ARM: OMAP 2: Camera: Fix device release
authorSakari Ailus <sakari.ailus@nokia.com>
Tue, 4 Dec 2007 15:48:59 +0000 (17:48 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 5 Dec 2007 22:41:39 +0000 (14:41 -0800)
commiteac754e49e5fbe1c7ac9c2c3108bdab3060e47a6
tree1397927e1a9bf0859b0dcf0a314624be17222564
parent80919be9e4c70853d7211e3530e48cc376f8eb83
ARM: OMAP 2: Camera: Fix device release

If streaming wasn't stopped before a file handle was closed,
videobuf_streamoff got called after cam->streaming had been set NULL,
causing an oops. Call videobuf_streamoff a bit earlier instead.

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/media/video/omap24xxcam.c