aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorMichal Schmidt <[email protected]>2012-03-15 14:08:29 +0000
committerDavid S. Miller <[email protected]>2012-03-16 01:57:26 -0700
commitc0ea452e422a1fc78ec8c639df64012d0b8dbb4a (patch)
tree372e3246e5f51cf490a760e1d49de60263d53d2e /net/lapb/lapb_timer.c
parent127d0a198a310970b31866af8bbb6d4b1068e546 (diff)
bnx2x: fix memory leak in bnx2x_init_firmware()
When cycling the interface down and up, bnx2x_init_firmware() knows that the firmware is already loaded, but nevertheless it allocates certain arrays anew (init_data, init_ops, init_ops_offsets, iro_arr). The old arrays are leaked. Fix the leaks by returning early if the firmware was already loaded. Because if the firmware is loaded, so are the arrays. Signed-off-by: Michal Schmidt <[email protected]> Acked-by: Eilon Greenstein <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions