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-02-14 16:28:23 -05:00
2012-01-10 16:35:00 -08:00
2011-12-08 19:52:37 -05:00
2012-01-10 16:35:00 -08:00
2011-11-29 00:25:05 -05:00
2012-01-10 16:35:00 -08:00
2012-03-08 00:27:45 -08:00
2012-03-16 01:57:26 -07:00
2012-02-09 15:43:30 -05:00
2012-01-10 16:35:00 -08:00
2012-01-05 13:23:00 -05:00
2012-03-06 16:21:17 -05:00
2012-03-01 17:23:42 -05:00
2011-12-02 13:49:21 -05:00
2011-12-19 22:27:29 -05:00
2011-12-19 22:27:29 -05:00
2012-02-01 14:47:17 -05:00
2012-01-18 21:01:11 -05:00
2012-02-13 16:04:09 -05:00
2012-03-08 00:23:04 -08:00
2011-12-01 12:54:46 -05:00
2012-02-09 01:27:47 -08:00
2012-02-07 12:51:10 -05:00
2012-03-08 00:28:01 -08:00
2012-02-19 18:57:51 -05:00
2011-12-19 15:44:43 -05:00
2012-01-06 18:28:12 -08:00
2011-12-08 19:52:37 -05:00
2011-11-29 00:25:05 -05:00
2011-12-02 12:39:12 -05:00
2012-02-13 16:04:09 -05:00
2012-03-01 17:23:42 -05:00
2012-03-02 19:05:47 -05:00
2011-12-06 00:48:59 -05:00
2012-03-05 16:50:52 -05:00
2012-01-07 12:09:36 -08:00
2012-03-06 14:43:49 -05:00
2012-02-07 13:37:30 -05:00
2011-11-29 00:25:05 -05:00
2012-02-25 00:10:22 +00:00
2011-12-27 13:17:34 -05:00
2012-01-08 13:21:22 -08:00
2012-01-10 16:35:01 -08:00
2012-02-15 14:52:10 -05:00
2011-12-19 16:13:36 -05:00
2011-12-08 19:52:37 -05:00
2012-02-24 03:25:10 -05:00
2012-01-09 14:05:23 -08:00
2012-02-07 13:40:44 -05:00
2012-01-12 20:05:28 -08:00
2012-02-05 17:47:09 -05:00
2011-12-21 15:42:50 -05:00
2012-02-13 16:04:09 -05:00
2012-01-10 16:35:00 -08:00
2011-11-29 00:25:05 -05: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
2011-11-29 00:25:05 -05:00
2012-01-10 16:35:00 -08:00
2012-01-09 14:39:22 -08:00
2012-01-10 16:35:01 -08:00