diff options
Diffstat (limited to 'drivers/scsi/hosts.c')
-rw-r--r-- | drivers/scsi/hosts.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index dfcb96f3e60c..68ef1636678d 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c | |||
@@ -265,6 +265,9 @@ static void scsi_host_dev_release(struct device *dev) | |||
265 | destroy_workqueue(shost->work_q); | 265 | destroy_workqueue(shost->work_q); |
266 | 266 | ||
267 | scsi_destroy_command_freelist(shost); | 267 | scsi_destroy_command_freelist(shost); |
268 | if (shost->bqt) | ||
269 | blk_free_tags(shost->bqt); | ||
270 | |||
268 | kfree(shost->shost_data); | 271 | kfree(shost->shost_data); |
269 | 272 | ||
270 | if (parent) | 273 | if (parent) |
@@ -487,7 +490,9 @@ EXPORT_SYMBOL(scsi_is_host_device); | |||
487 | * @work: Work to queue for execution. | 490 | * @work: Work to queue for execution. |
488 | * | 491 | * |
489 | * Return value: | 492 | * Return value: |
490 | * 0 on success / != 0 for error | 493 | * 1 - work queued for execution |
494 | * 0 - work is already queued | ||
495 | * -EINVAL - work queue doesn't exist | ||
491 | **/ | 496 | **/ |
492 | int scsi_queue_work(struct Scsi_Host *shost, struct work_struct *work) | 497 | int scsi_queue_work(struct Scsi_Host *shost, struct work_struct *work) |
493 | { | 498 | { |