aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/cxgbi/cxgb4i/cxgb4i.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
index 406e94312d4e..211da1d5a869 100644
--- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
+++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
@@ -2108,12 +2108,12 @@ static int t4_uld_rx_handler(void *handle, const __be64 *rsp,
2108 log_debug(1 << CXGBI_DBG_TOE, 2108 log_debug(1 << CXGBI_DBG_TOE,
2109 "cdev %p, opcode 0x%x(0x%x,0x%x), skb %p.\n", 2109 "cdev %p, opcode 0x%x(0x%x,0x%x), skb %p.\n",
2110 cdev, opc, rpl->ot.opcode_tid, ntohl(rpl->ot.opcode_tid), skb); 2110 cdev, opc, rpl->ot.opcode_tid, ntohl(rpl->ot.opcode_tid), skb);
2111 if (cxgb4i_cplhandlers[opc]) 2111 if (opc >= ARRAY_SIZE(cxgb4i_cplhandlers) || !cxgb4i_cplhandlers[opc]) {
2112 cxgb4i_cplhandlers[opc](cdev, skb);
2113 else {
2114 pr_err("No handler for opcode 0x%x.\n", opc); 2112 pr_err("No handler for opcode 0x%x.\n", opc);
2115 __kfree_skb(skb); 2113 __kfree_skb(skb);
2116 } 2114 } else
2115 cxgb4i_cplhandlers[opc](cdev, skb);
2116
2117 return 0; 2117 return 0;
2118nomem: 2118nomem:
2119 log_debug(1 << CXGBI_DBG_TOE, "OOM bailing out.\n"); 2119 log_debug(1 << CXGBI_DBG_TOE, "OOM bailing out.\n");