diff options
Diffstat (limited to 'block/scsi_ioctl.c')
-rw-r--r-- | block/scsi_ioctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index 4f4230b79bb..fbdf0d802ec 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c | |||
@@ -565,7 +565,7 @@ int scsi_cmd_ioctl(struct request_queue *q, struct gendisk *bd_disk, fmode_t mod | |||
565 | { | 565 | { |
566 | int err; | 566 | int err; |
567 | 567 | ||
568 | if (!q || blk_get_queue(q)) | 568 | if (!q) |
569 | return -ENXIO; | 569 | return -ENXIO; |
570 | 570 | ||
571 | switch (cmd) { | 571 | switch (cmd) { |
@@ -686,7 +686,6 @@ int scsi_cmd_ioctl(struct request_queue *q, struct gendisk *bd_disk, fmode_t mod | |||
686 | err = -ENOTTY; | 686 | err = -ENOTTY; |
687 | } | 687 | } |
688 | 688 | ||
689 | blk_put_queue(q); | ||
690 | return err; | 689 | return err; |
691 | } | 690 | } |
692 | EXPORT_SYMBOL(scsi_cmd_ioctl); | 691 | EXPORT_SYMBOL(scsi_cmd_ioctl); |