* [PATCH] bfs: Fix improper free() on non-existing files
@ 2024-05-16 18:37 Vladimir Serbinenko
2024-06-03 16:25 ` Daniel Kiper
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Serbinenko @ 2024-05-16 18:37 UTC (permalink / raw)
To: grub-devel; +Cc: Vladimir Serbinenko
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
grub-core/fs/bfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/fs/bfs.c b/grub-core/fs/bfs.c
index 07cb3e3ac..9bc478ce8 100644
--- a/grub-core/fs/bfs.c
+++ b/grub-core/fs/bfs.c
@@ -808,7 +808,7 @@ find_file (const char *path, grub_disk_t disk,
.disk = disk,
.sb = sb,
};
- struct grub_fshelp_node *found;
+ struct grub_fshelp_node *found = NULL;
err = read_extent (disk, sb, &sb->root_dir, 0, 0, &root.ino,
sizeof (root.ino));
--
2.39.2
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bfs: Fix improper free() on non-existing files
2024-05-16 18:37 [PATCH] bfs: Fix improper free() on non-existing files Vladimir Serbinenko
@ 2024-06-03 16:25 ` Daniel Kiper
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Kiper @ 2024-06-03 16:25 UTC (permalink / raw)
To: Vladimir Serbinenko; +Cc: grub-devel
On Thu, May 16, 2024 at 09:37:49PM +0300, Vladimir Serbinenko wrote:
> Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-03 16:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-16 18:37 [PATCH] bfs: Fix improper free() on non-existing files Vladimir Serbinenko
2024-06-03 16:25 ` Daniel Kiper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.