]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/infiniband/hw/cxgb4/device.c
regulator: max8952: Make of_device_id array const
[karo-tx-linux.git] / drivers / infiniband / hw / cxgb4 / device.c
index ba7335fd4ebfca7db505585ac7fbee792fd4d67e..9489a388376ceed97d42fc88064cebbd2403e536 100644 (file)
@@ -898,11 +898,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: