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>
This commit is contained in:
parent
fea7a08acb
commit
92dd6c3d4d
1 changed files with 1 additions and 1 deletions
|
@ -1361,11 +1361,11 @@ static int abort_rpl(struct c4iw_dev *dev, struct sk_buff *skb)
|
||||||
struct tid_info *t = dev->rdev.lldi.tids;
|
struct tid_info *t = dev->rdev.lldi.tids;
|
||||||
|
|
||||||
ep = lookup_tid(t, tid);
|
ep = lookup_tid(t, tid);
|
||||||
PDBG("%s ep %p tid %u\n", __func__, ep, ep->hwtid);
|
|
||||||
if (!ep) {
|
if (!ep) {
|
||||||
printk(KERN_WARNING MOD "Abort rpl to freed endpoint\n");
|
printk(KERN_WARNING MOD "Abort rpl to freed endpoint\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
PDBG("%s ep %p tid %u\n", __func__, ep, ep->hwtid);
|
||||||
mutex_lock(&ep->com.mutex);
|
mutex_lock(&ep->com.mutex);
|
||||||
switch (ep->com.state) {
|
switch (ep->com.state) {
|
||||||
case ABORTING:
|
case ABORTING:
|
||||||
|
|
Loading…
Reference in a new issue