RDMA/cxgb4: Move dereference below NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 7 Sep 2012 06:51:23 +0000 (06:51 +0000)
committerRoland Dreier <roland@purestorage.com>
Fri, 7 Sep 2012 23:19:03 +0000 (16:19 -0700)
commit92dd6c3d4d4e0a26c9bb987b3f2f08c1da86d9ce
treefea15e5bdf28b6d3da0d7e963274b41bec21dc38
parentfea7a08acb13524b47711625eebea40a0ede69a0
RDMA/cxgb4: Move dereference below NULL test

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/cm.c