diff options
author | Tejun Heo <htejun@gmail.com> | 2007-01-02 03:41:04 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-01-06 10:05:50 -0500 |
commit | 6397256b0af52082db3b7f804aa3b612a17dcbc9 (patch) | |
tree | 8c9e8db801ca14f64575f31d791aaae67b0db50a /drivers/scsi/sr.c | |
parent | a96e0c7798057dd8055d0263c076fed975c10237 (diff) |
[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 <htejun@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r-- | 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 fae6e95a6298..89e9b36b1788 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, | |||
468 | } | 468 | } |
469 | 469 | ||
470 | ret = cdrom_ioctl(file, &cd->cdi, inode, cmd, arg); | 470 | ret = cdrom_ioctl(file, &cd->cdi, inode, cmd, arg); |
471 | if (ret != ENOSYS) | 471 | if (ret != -ENOSYS) |
472 | return ret; | 472 | return ret; |
473 | 473 | ||
474 | /* | 474 | /* |