linux/drivers/media/dvb
Santosh Nayak 26a11eb176 [media] dib0700: Return -EINTR and unlock mutex if locking attempts fails
In 'dib0700_i2c_xfer_new()' and 'dib0700_i2c_xfer_legacy()'
we are taking two locks:
                1. i2c_mutex
                2. usb_mutex
If attempt to take 'usb_mutex' lock fails then the previously taken
lock 'i2c_mutex' should be unlocked and -EINTR should be returned so
that caller can take appropriate action.

If locking attempt was interrupted by a signal then
we should return -EINTR. At present we are returning '0' for
such scenarios  which is wrong.

Replace -EAGAIN by -EINTR as a return type for the the scenario
where locking attempt was interrupted by signal.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-05-15 09:32:31 -03:00
..
b2c2 Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-01-15 12:49:56 -08:00
bt8xx [media] v4l/dvb: fix compiler warnings 2012-05-14 14:50:10 -03:00
ddbridge [media] drivers/media: add missing __devexit_p() annotations 2012-05-15 07:53:51 -03:00
dm1105 [media] dm1105: release dvbnet on frontend attachment failure 2012-01-07 11:54:03 -02:00
dvb-core Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-05-14 11:23:37 -07:00
dvb-usb [media] dib0700: Return -EINTR and unlock mutex if locking attempts fails 2012-05-15 09:32:31 -03:00
firewire Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
frontends [media] cxd2820r: tweak search algorithm behavior 2012-05-15 09:28:49 -03:00
mantis [media] v4l/dvb: fix compiler warnings 2012-05-14 14:50:51 -03:00
ngene [media] ngene: remove an unneeded condition 2012-04-26 15:29:23 -03:00
pluto2 [media] pluto2: remove some dead code 2012-04-19 17:15:32 -03:00
pt1 [media] dvb: earth-pt1: remove unsupported net subdevices 2012-03-19 15:48:13 -03:00
siano [media] v4l/dvb: fix compiler warnings 2012-05-14 14:50:10 -03:00
ttpci [media] av7110: fix v4l2_compliance test issues 2012-05-14 15:04:11 -03:00
ttusb-budget Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-01-15 12:49:56 -08:00
ttusb-dec Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-01-15 12:49:56 -08:00
Kconfig [media] ddbridge: Allow compiling of the driver 2011-07-27 17:55:45 -03:00
Makefile [media] ddbridge: Allow compiling of the driver 2011-07-27 17:55:45 -03:00