diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2013-11-09 18:28:43 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-11-29 12:18:25 -0200 |
commit | 6633327d59067fe16128d66968cd50a10ca7a09c (patch) | |
tree | 8b15c43911b272535286e227d5263010a52e2438 /firmware | |
parent | 858559a29258a30d9f4839286b4aca6ab8c5c8d6 (diff) | |
download | linux-6633327d59067fe16128d66968cd50a10ca7a09c.tar.bz2 |
[media] dvb_demux: fix deadlock in dmx_section_feed_release_filter()
dmx_section_feed_release_filter() locks dvbdmx->mutex and
if the feed is still filtering, it calls feed->stop_filtering(feed).
stop_filtering() is implemented by dmx_section_feed_stop_filtering()
that first of all try to lock the same mutex: dvbdmx->mutex.
That leads to a deadlock.
It does not happen often in practice because all callers of
release_filter() stop filtering by themselves.
So the problem can happen in case of race condition only.
The patch releases dvbdmx->mutex before call to feed->stop_filtering(feed)
and reacquires the mutex after that.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions