Revision c0ea452e422a1fc78ec8c639df64012d0b8dbb4a authored by Michal Schmidt on 15 March 2012, 14:08:29 UTC, committed by David S. Miller on 16 March 2012, 08:57:26 UTC
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>
1 parent 127d0a1
File | Mode | Size |
---|---|---|
apparmor | ||
integrity | ||
keys | ||
selinux | ||
smack | ||
tomoyo | ||
Kconfig | -rw-r--r-- | 7.9 KB |
Makefile | -rw-r--r-- | 941 bytes |
capability.c | -rw-r--r-- | 23.2 KB |
commoncap.c | -rw-r--r-- | 27.1 KB |
device_cgroup.c | -rw-r--r-- | 11.5 KB |
inode.c | -rw-r--r-- | 6.7 KB |
lsm_audit.c | -rw-r--r-- | 9.0 KB |
min_addr.c | -rw-r--r-- | 1.3 KB |
security.c | -rw-r--r-- | 33.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...