git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acfacf4
)
bootstd: rauc: Fix segfault when cleaning up slots
author
Martin Schwan
<m.schwan@phytec.de>
Wed, 13 Aug 2025 11:54:05 +0000
(13:54 +0200)
committer
Tom Rini
<trini@konsulko.com>
Thu, 21 Aug 2025 21:05:04 +0000
(15:05 -0600)
Fix a segfault when cleaning up the slots from the private struct. This
fault was generated by accessing a member of a null pointer.
Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Tested-by: Wadim Egorov <w.egorov@phytec.de>
boot/bootmeth_rauc.c
patch
|
blob
|
history
diff --git
a/boot/bootmeth_rauc.c
b/boot/bootmeth_rauc.c
index
cc61802
..
a27c85c
100644
(file)
--- a/
boot/bootmeth_rauc.c
+++ b/
boot/bootmeth_rauc.c
@@
-187,7
+187,7
@@
static int distro_rauc_read_bootflow(struct udevice *dev, struct bootflow *bflow
ret = distro_rauc_scan_parts(bflow);
if (ret < 0) {
- for (i = 0; priv->slots[i]
->name
; i++) {
+ for (i = 0; priv->slots[i]; i++) {
free(priv->slots[i]->name);
free(priv->slots[i]);
}