[PATCH] dvb-core: Release semaphore on error path dvb_register_device().

2012-06-23 Thread santosh nayak
From: Santosh Nayak santoshprasadna...@gmail.com There is a missing up_write() here. Semaphore should be released before returning error value. Signed-off-by: Santosh Nayak santoshprasadna...@gmail.com --- Destination tree linux-next drivers/media/dvb/dvb-core/dvbdev.c |1 + 1 files

[PATCH] [media] dib0700: Return -EINTR and unlock mutex if locking attempts fails.

2012-03-19 Thread santosh nayak
From: Santosh Nayak santoshprasadna...@gmail.com 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

[PATCH] [media] staging: use mutex_lock() in s2250_probe().

2012-03-17 Thread santosh nayak
From: Santosh Nayak santoshprasadna...@gmail.com Use uninterruptable sleep lock 'mutex_lock()' in place of mutex_lock_interruptible() because there is no userspace for s2250_probe(). Return -ENOMEM if kzalloc() fails to allocate and initialize. Signed-off-by: Santosh Nayak santoshprasadna

[PATCH] [media] dib0700: Return -EINTR and unlock mutex if locking attempts fails.

2012-03-16 Thread santosh nayak
From: Santosh Nayak santoshprasadna...@gmail.com 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

[PATCH] isdn: Return -EINTR in gigaset_start() if locking attempts fails.

2012-03-16 Thread santosh nayak
From: Santosh Nayak santoshprasadna...@gmail.com If locking attempt was interrupted by a signal then we should return -EINTR so that caller can take appropriate action. We have 3 callers: gigaset_probe(), gigaset_tty_open() and gigaset_probe(). Each caller tries to free allocated memory if lock

[PATCH] [media] staging: Return -EINTR in s2250_probe() if fails to get lock.

2012-03-16 Thread santosh nayak
From: Santosh Nayak santoshprasadna...@gmail.com In s2250_probe(), If locking attempt is interrupted by a signal then it should return -EINTR after unregistering audio device and making free the allocated memory. At present, if locking is interrupted by signal it will display message initialized

[PATCH] [media] dvb: negative value assigned to unsigned int in CDRXD().

2012-03-06 Thread santosh nayak
From: Santosh Nayak santoshprasadna...@gmail.com In CDRXD(), Negative number is assigned to unsigned variable 'state-noise_cal.tdCal2. Members of 'SNoiseCal' should be 'signed short'. Signed-off-by: Santosh Nayak santoshprasadna...@gmail.com --- drivers/media/dvb/frontends/drxd_hard.c |6

[PATCH 2/2] Driver: video: Use the macro DMA_BIT_MASK().

2012-02-21 Thread santosh nayak
From: Santosh Nayak santoshprasadna...@gmail.com Use the macro DMA_BIT_MASK instead of the constant 0x. Signed-off-by: Santosh Nayak santoshprasadna...@gmail.com --- drivers/media/video/cx18/cx18-driver.c |4 ++-- drivers/media/video/ivtv/ivtv-driver.c |4 ++-- 2 files changed