net/bnx2x: fix memory leak
authorShahed Shaikh <shshaikh@marvell.com>
Fri, 12 Apr 2019 01:47:38 +0000 (18:47 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:54 +0000 (14:51 +0200)
commit68ed0742256dde2335cb1f6560ef94e7b29febed
tree33ba26321c636bce0c1743ac5eedaddc23961586
parented55533e98c78273fc857151d42889741a4b3316
net/bnx2x: fix memory leak

We allocate DMA memory but never free after using it.
Add function to free DMA memory.

Fixes: b5bf7719221d ("bnx2x: driver support routines")
Cc: stable@dpdk.org
Signed-off-by: Shahed Shaikh <shshaikh@marvell.com>
drivers/net/bnx2x/bnx2x.c
drivers/net/bnx2x/bnx2x.h
drivers/net/bnx2x/ecore_sp.h