diff options
author | Arne Redlich <arne.redlich@xiranet.com> | 2006-09-30 15:49:40 +0200 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-10-01 15:06:54 -0500 |
commit | 6470f2ba641cf93d357854cdc63a65350352bb97 (patch) | |
tree | ecba093313d2b75a98c67e706fdee18e2162a871 /drivers/scsi | |
parent | fb4f66be59f3dcc66fda2e681f1fc77b5cc4508d (diff) | |
download | linux-3.10-6470f2ba641cf93d357854cdc63a65350352bb97.tar.gz linux-3.10-6470f2ba641cf93d357854cdc63a65350352bb97.tar.bz2 linux-3.10-6470f2ba641cf93d357854cdc63a65350352bb97.zip |
[SCSI] trivial scsi_execute_async fix
In scsi_execute_async()'s error path, a struct scsi_io_context
allocated with kmem_cache_alloc() is kfree()'d. Obviously
kmem_cache_free() should be used instead.
Signed-off-by: Arne Redlich <arne.redlich@xiranet.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-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 d6743b959a7..8ada93ae34f 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -424,7 +424,7 @@ int scsi_execute_async(struct scsi_device *sdev, const unsigned char *cmd, free_req: blk_put_request(req); free_sense: - kfree(sioc); + kmem_cache_free(scsi_io_context_cache, sioc); return DRIVER_ERROR << 24; } EXPORT_SYMBOL_GPL(scsi_execute_async); |