diff options
| -rw-r--r-- | drivers/scsi/scsi_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 54eff6a79fb8..7fa54fe51f63 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
| @@ -1274,7 +1274,7 @@ int scsi_prep_return(struct request_queue *q, struct request *req, int ret) | |||
| 1274 | struct scsi_cmnd *cmd = req->special; | 1274 | struct scsi_cmnd *cmd = req->special; |
| 1275 | scsi_release_buffers(cmd); | 1275 | scsi_release_buffers(cmd); |
| 1276 | scsi_put_command(cmd); | 1276 | scsi_put_command(cmd); |
| 1277 | put_device(&cmd->device->sdev_gendev); | 1277 | put_device(&sdev->sdev_gendev); |
| 1278 | req->special = NULL; | 1278 | req->special = NULL; |
| 1279 | } | 1279 | } |
| 1280 | break; | 1280 | break; |
