Michal Schmidt c0ea452e42 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 <mschmidt@redhat.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-03-16 01:57:26 -07:00
..
2012-01-05 13:23:00 -05:00
2011-12-06 00:48:59 -05:00
2012-01-09 14:05:23 -08:00
2012-02-05 17:47:09 -05:00
2012-01-10 16:35:00 -08:00
2012-02-22 14:44:41 -05:00
2012-02-22 14:44:41 -05:00
2011-11-29 01:15:24 -05:00
2012-01-09 14:39:22 -08:00
2012-01-10 16:35:01 -08:00