Commit:     6397256b0af52082db3b7f804aa3b612a17dcbc9
Parent:     a96e0c7798057dd8055d0263c076fed975c10237
Author:     Tejun Heo <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 2 17:41:04 2007 +0900
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Sat Jan 6 09:05:50 2007 -0600

    [SCSI] sr: fix error code check in sr_block_ioctl()
    sr_block_ioctl() should proceed to SCSI ioctls if cdrom_ioctl()
    returns -ENOSYS.  However it tested for ENOSYS instead of -ENOSYS
    rendering all SCSI ioctls other than GET_IDLUN and GET_BUS_NUMBER
    inaccessible.  Fix it.
    Signed-off-by: Tejun Heo <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 drivers/scsi/sr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c
index fae6e95..89e9b36 100644
--- a/drivers/scsi/sr.c
+++ b/drivers/scsi/sr.c
@@ -468,7 +468,7 @@ static int sr_block_ioctl(struct inode *inode, struct file 
*file, unsigned cmd,
        ret = cdrom_ioctl(file, &cd->cdi, inode, cmd, arg);
-       if (ret != ENOSYS)
+       if (ret != -ENOSYS)
                return ret;
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