net/qede/base: fix to set pointers to NULL after freeing
authorRasesh Mody <rasesh.mody@cavium.com>
Sat, 18 Mar 2017 06:50:16 +0000 (23:50 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:43 +0000 (18:59 +0200)
commit74cd03120d909dbd589d554b2e83811f097dd254
tree7bf244d564877679dd04cdc29ed09b0d22fb0ec5
parentd4806aba9b8ec552fb711a794e34c847c5a7b252
net/qede/base: fix to set pointers to NULL after freeing

Set pointers to NULL after freeing the allocations. Change OSAL_FREE
macro to take care of this and cleanup relevant code.

Fixes: 26ae839d06e9 ("qede: add DCBX support")
Fixes: ec94dbc57362 ("qede: add base driver")

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/bcm_osal.h
drivers/net/qede/base/ecore_cxt.c
drivers/net/qede/base/ecore_dev.c
drivers/net/qede/base/ecore_hw.c
drivers/net/qede/base/ecore_mcp.c
drivers/net/qede/base/ecore_sriov.c
drivers/net/qede/base/ecore_vf.c