Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3abff557d5eed7d6fd03aa11353a1c0f329cac2b
Commit:     3abff557d5eed7d6fd03aa11353a1c0f329cac2b
Parent:     acd827d63a568a2cfa26ae8e6093b098c91c631b
Author:     Jiri Slaby <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 9 22:03:12 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 00:03:25 2007 -0300

    V4L/DVB (6307): V4L: w9968cf, remove bad usage of ERESTARTSYS
    
    w9968cf, remove bad usage of ERESTARTSYS
    
    down_read_trylock can't be interrupted and so ERESTARTSYS would reach
    userspace, which is not permitted. Change it to EAGAIN
    
    Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]>
    Acked-by: Luca Risolia <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/w9968cf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c
index 77599f2..5a1b5f5 100644
--- a/drivers/media/video/w9968cf.c
+++ b/drivers/media/video/w9968cf.c
@@ -2679,7 +2679,7 @@ static int w9968cf_open(struct inode* inode, struct file* 
filp)
 
        /* This the only safe way to prevent race conditions with disconnect */
        if (!down_read_trylock(&w9968cf_disconnect))
-               return -ERESTARTSYS;
+               return -EAGAIN;
 
        cam = (struct w9968cf_device*)video_get_drvdata(video_devdata(filp));
 
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to