From: Mike Christie Date: Wed, 28 Jan 2015 09:46:53 +0000 (-0600) Subject: scsi: fix device handler detach oops X-Git-Tag: fixes-v4.0-rc1~201^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28072ad50ca7328bd99f9dba94ac27c723da0053;p=pandora-kernel.git scsi: fix device handler detach oops This fixes a regression caused by commit 1d5203 ("scsi: handle more device handler setup/teardown in common code"). The bug is that the alua detach() callout will try to access the sddev->scsi_dh_data, but we have already set it to NULL. This patch moves the clearing of that field to after detach() is called. Signed-off-by: Mike Christie Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed