]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
NET: atlx, fix memory leak
authorJiri Slaby <jslaby@suse.cz>
Wed, 6 Jan 2010 06:54:16 +0000 (06:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jan 2010 09:07:30 +0000 (01:07 -0800)
commit2467ab9590092ffdf837e9283e84dedd04c93ab3
treeaa528b1edbc10c3c438996aea7901ed199a58888
parentc91aa55e7e65be11d68dffb66be5f7a44506fb54
NET: atlx, fix memory leak

Stanse found a memory leak in atl2_get_eeprom. eeprom_buff is not
freed/assigned on all paths. Fix that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Jay Cliburn <jcliburn@gmail.com>
Cc: Chris Snook <chris.snook@gmail.com>
Cc: Jie Yang <jie.yang@atheros.com>
Cc: atl1-devel@lists.sourceforge.net
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/atlx/atl2.c