summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-02-12 09:37:57 +0100
committerDavid S. Miller <davem@davemloft.net>2009-02-16 08:31:47 +0100
commitcfb18c5cb7ef5506a2864f9ec360cbb2ca6e8d28 (patch)
tree15049a4331206efec94626098697168f8103c6cd /drivers/net
parentbnx2x: Using nvram default WoL config (diff)
downloadlinux-cfb18c5cb7ef5506a2864f9ec360cbb2ca6e8d28.tar.xz
linux-cfb18c5cb7ef5506a2864f9ec360cbb2ca6e8d28.zip
bnx2x: Memory clean up on failure
Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/bnx2x_init.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bnx2x_init.h b/drivers/net/bnx2x_init.h
index 961db4916f25..021438f81341 100644
--- a/drivers/net/bnx2x_init.h
+++ b/drivers/net/bnx2x_init.h
@@ -274,6 +274,9 @@ static void bnx2x_init_wr_wb(struct bnx2x *bp, u32 addr, const u32 *data,
rc = bnx2x_gunzip(bp, (u8 *)data, len);
if (rc) {
BNX2X_ERR("gunzip failed ! rc %d\n", rc);
+#ifdef __BIG_ENDIAN
+ kfree(temp);
+#endif
return;
}
len = bp->gunzip_outlen;