From: Simon Arlott Date: Sat, 10 Mar 2007 09:21:25 +0000 (-0300) Subject: V4L/DVB (5400): Core: fix several locking related problems X-Git-Tag: v2.6.21-rc6~85^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c278850206fd9df0bb62a72ca0b277fe20c5a452;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Acked-By: Johannes Stezenbach Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed