summaryrefslogtreecommitdiffstats
path: root/Documentation/dvb/get_dvb_firmware
diff options
context:
space:
mode:
authorSantosh Nayak2012-03-19 11:27:37 +0100
committerMauro Carvalho Chehab2012-05-15 14:32:31 +0200
commit26a11eb176bfd66442dd47f8aac6b8c4252bd6da (patch)
tree235fb860838850c2dd389acfafe33f02777ea390 /Documentation/dvb/get_dvb_firmware
parent[media] cxd2820r: tweak search algorithm behavior (diff)
downloadkernel-qcow2-linux-26a11eb176bfd66442dd47f8aac6b8c4252bd6da.tar.gz
kernel-qcow2-linux-26a11eb176bfd66442dd47f8aac6b8c4252bd6da.tar.xz
kernel-qcow2-linux-26a11eb176bfd66442dd47f8aac6b8c4252bd6da.zip
[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>
Diffstat (limited to 'Documentation/dvb/get_dvb_firmware')
0 files changed, 0 insertions, 0 deletions