aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/sg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index f7abccaffaec..62b5bd5fd761 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -679,7 +679,7 @@ sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf,
679 sg_remove_request(sfp, srp); 679 sg_remove_request(sfp, srp);
680 return -EFAULT; 680 return -EFAULT;
681 } 681 }
682 if (read_only && (!blk_verify_command(file, cmnd))) { 682 if (read_only && !blk_verify_command(file, cmnd)) {
683 sg_remove_request(sfp, srp); 683 sg_remove_request(sfp, srp);
684 return -EPERM; 684 return -EPERM;
685 } 685 }