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

Commit ad96b485 authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller
Browse files

[TG3]: Fix a memory leak.



This patch fixes a memory leak (buf wasn't freed) spotted by the
Coverity checker.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3a5cd9e
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -8034,9 +8034,13 @@ static int tg3_test_nvram(struct tg3 *tp)
		for (i = 0; i < size; i++)
			csum8 += buf8[i];

		if (csum8 == 0)
			return 0;
		return -EIO;
		if (csum8 == 0) {
			err = 0;
			goto out;
		}

		err = -EIO;
		goto out;
	}

	/* Bootstrap checksum at offset 0x10 */