]> git.hungrycats.org Git - linux/commitdiff
[PATCH] scsi_ioctl_send_command fix
authorKai Mäkisara <kai.makisara@kolumbus.fi>
Sun, 29 Jun 2003 15:41:54 +0000 (10:41 -0500)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Sun, 29 Jun 2003 15:41:54 +0000 (10:41 -0500)
The SCSI_IOCTL_SEND_COMMAND ioctl does not work in 2.5.73-bk7. The
following patch (possibly mangled by my mail client) does fix the problem
(introduced in 2.5.73):

drivers/scsi/scsi_ioctl.c

index 99ba2ca31d9514c9e7bd9b6077687efa82482d9f..28649532bcd4c14fd15ba430db84f24f7848cd3c 100644 (file)
@@ -322,7 +322,7 @@ int scsi_ioctl_send_command(struct scsi_device *sdev,
        }
 
        sreq = scsi_allocate_request(sdev);
-        if (sreq) {
+        if (!sreq) {
                 result = -EINTR;
                 goto error;
         }