From: Sreekanth Reddy Date: Fri, 12 Sep 2014 10:05:33 +0000 (+0530) Subject: mpt3sas, mpt2sas: fix scsi_add_host error handling problems in _scsih_probe X-Git-Tag: fixes-for-v3.18-merge-window~25^2^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b65f1d4da7df44835bd0a2452332e253a5c66d9b;p=pandora-kernel.git mpt3sas, mpt2sas: fix scsi_add_host error handling problems in _scsih_probe In _scsih_probe, propagate the return value from scsi_add_host. In mpt3sas, avoid calling list_del twice if that returns an error, which causes list_del corruption warnings if an error is returned. Tested with blk-mq and scsi-mq patches to properly cleanup from and propagate blk_mq_init_rq_map errors. Signed-off-by: Robert Elliott Acked-by: Sreekanth Reddy Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed