]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] save command pool address of Scsi_Host
authorJuergen Gross <jgross@suse.com>
Mon, 4 Aug 2014 11:30:02 +0000 (13:30 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 15 Aug 2014 19:46:46 +0000 (12:46 -0700)
commitf7978e05f4f491333086db4666c44eb3265ff03b
tree751d9efb50f0f180f4733a2563c16a173e0e3b1d
parent2501b47360bac9722693e0135efdd3c0b9c60d9d
[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: aebdf99b1697ca94d97f8583f500c73e958f999b
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi.c