Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfb18c5c authored by Eilon Greenstein's avatar Eilon Greenstein Committed by David S. Miller
Browse files

bnx2x: Memory clean up on failure

parent 3ce2c3f9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;