net/bnxt: fix uninitialized pointer access in Tx
authorSomnath Kotur <somnath.kotur@broadcom.com>
Sat, 29 Sep 2018 01:59:53 +0000 (18:59 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:48 +0000 (18:53 +0200)
commit63d086a52f0120523f3a33878d3ca0072b2de879
tree1b4afcff93dc212512891243db64aaea5a33d566
parent51fafb89a9a07df6aca943ce19cd1f8654bfdd31
net/bnxt: fix uninitialized pointer access in Tx

bnxt_start_xmit() was attempting to access an uninitialized ptr - txbd1
which would lead to segmentation fault.
Fix to initialize ptr to NULL and check for the same before access.

Fixes: f10258e39ec2 ("net/bnxt: fix HW Tx checksum offload check")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_txr.c