Commit:     ffeb9ec72e18e16d0b0835d959cdf01650758638
Parent:     624fc7f52b48f69fd9d1fe7a594c211762c89825
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Sat May 26 07:54:21 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jun 8 08:21:12 2007 -0300

    V4L/DVB (5699): Cinergyt2: fix file release handler
    If this mutex_lock_interruptible() does fail due to signal_pending() then 
    state of the driver will get trashed in interesting ways, because userspace
    cannot and will not retry the close().
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
 drivers/media/dvb/cinergyT2/cinergyT2.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/media/dvb/cinergyT2/cinergyT2.c 
index 34d7abc..6aba5b3 100644
--- a/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -519,8 +519,7 @@ static int cinergyt2_release (struct inode *inode, struct 
file *file)
        struct dvb_device *dvbdev = file->private_data;
        struct cinergyt2 *cinergyt2 = dvbdev->priv;
-       if (mutex_lock_interruptible(&cinergyt2->sem))
-               return -ERESTARTSYS;
+       mutex_lock(&cinergyt2->sem);
        if (!cinergyt2->disconnect_pending && (file->f_flags & O_ACCMODE) != 
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to