bnx2x: Correct memory preparation and release
authorDmitry Kravkov <dmitry@broadcom.com>
Wed, 23 Jan 2013 03:21:48 +0000 (03:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2013 18:58:28 +0000 (13:58 -0500)
commitc3146eb676e7cce254e98b1d179a4c82227a9d26
treea29cd767cf948a7a7004023849c29ce51486885b
parent6ab20355c0c4a4e067ebfed157c0b93c21e2f02c
bnx2x: Correct memory preparation and release

Since commit 15192a8cf there have been a memory leak upon rmmod
of the bnx2x driver.

This corrects the memory leak and corrects the zeroing of internal
memories upon driver load.

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c