Re: [PATCH] dvb-core: Fix several locking related problems.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Simon,

Simon Arlott wrote:
> @@ -673,13 +672,8 @@ static int dvb_demux_open(struct inode *
>  static int dvb_dmxdev_filter_free(struct dmxdev *dmxdev,
>  				  struct dmxdev_filter *dmxdevfilter)
>  {
> -	if (mutex_lock_interruptible(&dmxdev->mutex))
> -		return -ERESTARTSYS;
> -
> -	if (mutex_lock_interruptible(&dmxdevfilter->mutex)) {
> -		mutex_unlock(&dmxdev->mutex);
> -		return -ERESTARTSYS;
> -	}
> +	mutex_lock(&dmxdev->mutex);
> +	mutex_lock_interruptible(&dmxdevfilter->mutex);

Assuming that the rest of the patch is OK, shouldn't this be a
mutex_lock(), too, if the return value will be ignored?

Regards,
Andreas

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux