From: Bart Van Assche Date: Fri, 14 Aug 2015 18:01:09 +0000 (-0700) Subject: IB/srp: Stop the scsi_eh_ and scsi_tmf_ threads if login fails X-Git-Tag: omap-for-v4.3/fixes-rc1~52^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc44bd1d864664f3658352c6aaaa02557d49165d;p=pandora-kernel.git IB/srp: Stop the scsi_eh_ and scsi_tmf_ threads if login fails scsi_host_alloc() not only allocates memory for a SCSI host but also creates the scsi_eh_ kernel thread and the scsi_tmf_ workqueue. Stop these threads if login fails by calling scsi_host_put(). Reported-by: Konstantin Krotov Fixes: fb49c8bbaae7 ("Remove an extraneous scsi_host_put() from an error path") Signed-off-by: Bart Van Assche Cc: Sagi Grimberg Cc: Sebastian Parschauer Cc: #v3.19 Signed-off-by: Doug Ledford --- Reading git-diff-tree failed