kernel-hacking-2024-linux-s.../drivers/media/dvb/dvb-core
Simon Arlott c278850206 V4L/DVB (5400): Core: fix several locking related problems
Fix several instances of dvb-core functions using mutex_lock_interruptible
and returning -ERESTARTSYS where the calling function will either never
retry or never check the return value.
These cause a race condition with dvb_dmxdev_filter_free and
dvb_dvr_release, both of which are filesystem release functions whose
return value is ignored and will never be retried.  When this happens it
becomes impossible to open dvr0 again (-EBUSY) since it has not been
released properly.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-By: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-27 08:45:54 -03:00
..
demux.h
dmxdev.c V4L/DVB (5400): Core: fix several locking related problems 2007-03-27 08:45:54 -03:00
dmxdev.h
dvb_ca_en50221.c
dvb_ca_en50221.h
dvb_demux.c V4L/DVB (5400): Core: fix several locking related problems 2007-03-27 08:45:54 -03:00
dvb_demux.h
dvb_filter.c
dvb_filter.h
dvb_frontend.c V4L/DVB (5209): Kthread api conversion for dvb_frontend and av7110 fix 2007-02-21 13:35:20 -02:00
dvb_frontend.h
dvb_math.c
dvb_math.h
dvb_net.c V4L/DVB (4973): Dvb-core: fix printk type warning 2006-12-27 14:19:15 -02:00
dvb_net.h
dvb_ringbuffer.c
dvb_ringbuffer.h
dvbdev.c V4L/DVB (5400): Core: fix several locking related problems 2007-03-27 08:45:54 -03:00
dvbdev.h
Kconfig
Makefile