]> git.baikalelectronics.ru Git - kernel.git/commit
dm mpath: fix check for null mpio in end_io fn
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 12 Oct 2012 15:59:42 +0000 (16:59 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 12 Oct 2012 15:59:42 +0000 (16:59 +0100)
commit49501d2c7feeb8ce947b5d83ecf7c28cfef2d176
treeda8d0847828584d2788244d07c33a4422e489e50
parentd5c0f78f9d503f5ff42f0880f3627baa4b1ce135
dm mpath: fix check for null mpio in end_io fn

The mpio dereference should be moved below the BUG_ON NULL test
in multipath_end_io().

spatch with a semantic match was used to found this.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c