upstream: [media] saa7134: Fix crash when device is closed before streamoff
authorSimon Farnsworth <simon.farnsworth@onelan.co.uk>
Fri, 20 Sep 2013 16:15:28 +0000 (13:15 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:55:34 +0000 (11:55 +0900)
commitb381dab0e2e8be95641371686b50774f0d48669b
tree0ee0c419de2b8b51065849f5534d43ee9621902e
parent745c5ada8a6c2e33d19ac9cef22e8751c103db4f
upstream: [media] saa7134: Fix crash when device is closed before streamoff

pm_qos_remove_request was not called on video_release, resulting in the PM
core's list of requests being corrupted when the file handle was freed.
This has no immediate symptoms, but later in operation, the kernel will
panic as the PM core dereferences a dangling pointer.

Signed-off-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/saa7134/saa7134-video.c