qede: uninitialized variable in qede_start_xmit()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 May 2016 13:21:30 +0000 (16:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2016 03:31:53 +0000 (23:31 -0400)
"data_split" was never set to false.  It's just uninitialized.

Fixes: 2950219d87b0 ('qede: Add basic network device support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_main.c

index 8d5248c4087f41638b780627f2529198f49cd39f..12f6615797ded20fe3dc8895d32cb2fcb5e93071 100644 (file)
@@ -421,7 +421,7 @@ netdev_tx_t qede_start_xmit(struct sk_buff *skb,
        u8 xmit_type;
        u16 idx;
        u16 hlen;
-       bool data_split;
+       bool data_split = false;
 
        /* Get tx-queue context and netdev index */
        txq_index = skb_get_queue_mapping(skb);