提交 6470f2ba 编写于 作者: A Arne Redlich 提交者: James Bottomley

[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: NArne Redlich <arne.redlich@xiranet.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 fb4f66be
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册