Commit 8b7c21de authored by Dan Carpenter's avatar Dan Carpenter Committed by Kleber Sacilotto de Souza

qede: uninitialized variable in qede_start_xmit()

BugLink: https://bugs.launchpad.net/bugs/1878232

commit 810810ff upstream.

"data_split" was never set to false.  It's just uninitialized.

Fixes: 2950219d ('qede: Add basic network device support')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarIan May <ian.may@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 01acf15e
...@@ -400,7 +400,7 @@ netdev_tx_t qede_start_xmit(struct sk_buff *skb, ...@@ -400,7 +400,7 @@ netdev_tx_t qede_start_xmit(struct sk_buff *skb,
u8 xmit_type; u8 xmit_type;
u16 idx; u16 idx;
u16 hlen; u16 hlen;
bool data_split; bool data_split = false;
/* Get tx-queue context and netdev index */ /* Get tx-queue context and netdev index */
txq_index = skb_get_queue_mapping(skb); txq_index = skb_get_queue_mapping(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment