linux_dsm_epyc7002/drivers/net/atlx
Jesper Juhl ad19031b5f Atheros, atl2: Fix mem leaks in error paths of atl2_set_eeprom
We leak in some error paths of drivers/net/atlx/atl2.c:atl2_set_eeprom().
The memory allocated to 'eeprom_buff' is not freed when we return -EIO.
This patch fixes that up and also removes a pointless explicit cast.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-03-30 02:42:25 -07:00
..
atl1.c atl1: Do not use legacy PCI power management 2011-02-11 11:38:44 -08:00
atl1.h atlx: make local functions/data static 2010-10-24 14:55:49 -07:00
atl2.c Atheros, atl2: Fix mem leaks in error paths of atl2_set_eeprom 2011-03-30 02:42:25 -07:00
atl2.h tree-wide: Assorted spelling fixes 2010-02-09 11:13:56 +01:00
atlx.c atlx: make local functions/data static 2010-10-24 14:55:49 -07:00
atlx.h atlx: move modinfo data from atlx.h to atl1.c 2009-05-26 20:50:12 -07:00
Makefile atl2: add atl2 driver 2008-09-18 11:34:52 -04:00