From: Eilon Greenstein Date: Thu, 12 Feb 2009 08:37:57 +0000 (+0000) Subject: bnx2x: Memory clean up on failure X-Git-Tag: v2.6.30-rc1~662^2~697 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cfb18c5cb7ef5506a2864f9ec360cbb2ca6e8d28;p=karo-tx-linux.git bnx2x: Memory clean up on failure Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- 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;