[PATCH 4.4 180/312] qede: uninitialized variable in qede_start_xmit()

From: Greg Kroah-Hartman
Date: Fri May 08 2020 - 08:43:38 EST


From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

commit 810810ffb2f6d46365d0790bbe77698a5534393a upstream.

"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@xxxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
drivers/net/ethernet/qlogic/qede/qede_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/ethernet/qlogic/qede/qede_main.c
+++ b/drivers/net/ethernet/qlogic/qede/qede_main.c
@@ -400,7 +400,7 @@ netdev_tx_t qede_start_xmit(struct sk_bu
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);