1
0
Fork 0

RDMA/cxgb4: Don't leak skb in c4iw_uld_rx_handler()

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
hifive-unleashed-5.1
Steve Wise 2014-03-21 20:40:30 +05:30 committed by Roland Dreier
parent eda6d1d1b7
commit dbb084cc5f
1 changed files with 4 additions and 2 deletions

View File

@ -897,11 +897,13 @@ static int c4iw_uld_rx_handler(void *handle, const __be64 *rsp,
}
opcode = *(u8 *)rsp;
if (c4iw_handlers[opcode])
if (c4iw_handlers[opcode]) {
c4iw_handlers[opcode](dev, skb);
else
} else {
pr_info("%s no handler opcode 0x%x...\n", __func__,
opcode);
kfree_skb(skb);
}
return 0;
nomem: