net/bnxt: fix crash when closing
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 29 Sep 2016 17:03:44 +0000 (12:03 -0500)
committerBruce Richardson <bruce.richardson@intel.com>
Thu, 13 Oct 2016 13:30:59 +0000 (15:30 +0200)
commit316e412299fde9f8f099ef957aa04dc6c43d02a2
treefd7c31271478291d86f7a67c0ab005bba46c7592
parentdc687592ac67a300f1903aea6ca0e08f946de25f
net/bnxt: fix crash when closing

This patch fixes segfault encountered during dev_uninit/close routine.
KNI sample app can be used to reproduce the issue.

Fixes: c09f57b49c13 ("net/bnxt: add start/stop/link update operations")

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ethdev.c