projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f11b38e
)
drivers: qe: avoid double free()
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 27 Dec 2020 10:48:49 +0000
(11:48 +0100)
committer
Tom Rini
<trini@konsulko.com>
Mon, 18 Jan 2021 20:23:06 +0000
(15:23 -0500)
Avoid calling free(addr) twice if the device for ucode is not found.
The problem was indicated by cppcheck.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/qe/qe.c
patch
|
blob
|
history
diff --git
a/drivers/qe/qe.c
b/drivers/qe/qe.c
index 1a829b5a4cf379907a2be3326f335b704b9b28d4..259e4e3e678127dfe894b20850572b8ba09fa008 100644
(file)
--- a/
drivers/qe/qe.c
+++ b/
drivers/qe/qe.c
@@
-288,7
+288,6
@@
void u_qe_init(void)
struct mmc *mmc = find_mmc_device(CONFIG_SYS_MMC_ENV_DEV);
if (!mmc) {
- free(addr);
printf("\nMMC cannot find device for ucode\n");
} else {
printf("\nMMC read: dev # %u, block # %u, count %u ...\n",