The user should be allowed to break waiting for the lock when opening
the video device.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
        struct rvin_dev *vin = video_drvdata(file);
        int ret;
 
-       mutex_lock(&vin->lock);
+       ret = mutex_lock_interruptible(&vin->lock);
+       if (ret)
+               return ret;
 
        file->private_data = vin;