From: Jesper Juhl Date: Sun, 27 Mar 2011 09:16:12 +0000 (+0000) Subject: Atheros, atl2: Fix mem leaks in error paths of atl2_set_eeprom X-Git-Tag: v2.6.39-rc2~33^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad19031b5f6ede5b2df057e3e1b4f82a2ef7f75f;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed