diff options
author | Juergen Gross <jgross@suse.com> | 2014-08-04 13:30:02 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2014-08-15 12:46:46 -0700 |
commit | f6105c0808880c2c432b79bc81b37cc244c300c8 (patch) | |
tree | 751d9efb50f0f180f4733a2563c16a173e0e3b1d /lib/flex_proportions.c | |
parent | 045065d8a300a37218c548e9aa7becd581c6a0e8 (diff) | |
download | kernel_replicant_linux-f6105c0808880c2c432b79bc81b37cc244c300c8.tar.gz kernel_replicant_linux-f6105c0808880c2c432b79bc81b37cc244c300c8.tar.bz2 kernel_replicant_linux-f6105c0808880c2c432b79bc81b37cc244c300c8.zip |
[SCSI] save command pool address of Scsi_Host
If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's
private command pool is needed. scsi_find_host_cmd_pool() will locate it, but
scsi_alloc_host_cmd_pool() isn't saving the pool address in the host template.
This will result in an access error when the host is removed.
Avoid the problem by saving the address of a new allocated command pool where
it is expected.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Fixes: 89d9a567952baec13e26ada3e438f1b642d66b6e
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'lib/flex_proportions.c')
0 files changed, 0 insertions, 0 deletions