]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 14 Oct 2013 09:37:00 +0000 (06:37 -0300)
commitbb6a36afe5367d6e67f61b305ec717e5bf73f2d3
tree7dbe5aede4243caf9e71558819704c4e9e2243d1
parent6db99e4ee10f5ac4aab0649b99e298505e2999a7
[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