aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd/commit.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 08:57:26 +0000
commitc0ea452e422a1fc78ec8c639df64012d0b8dbb4a (patch)
tree372e3246e5f51cf490a760e1d49de60263d53d2e /fs/jbd/commit.c
parentbnx2x: fix a crash on corrupt firmware file (diff)
downloadkernel-c0ea452e422a1fc78ec8c639df64012d0b8dbb4a.tar.gz
kernel-c0ea452e422a1fc78ec8c639df64012d0b8dbb4a.zip
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 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions