ieee1275: fix segfault in grub-ofpathname
PATCH RESEND 1/1 ieee1275: fix segfault in grub-ofpathname
fix segfault in grub-ofpathname
Signed-off-by Eric Snowberg <[email protected]>
---
Originally sent on Wed, 29 Jun 2016 14:43:18 -0700
http://lists.gnu.org/archive/html/grub-devel/2016-06/msg00033.html
--- util/ieee1275/grub-ofpathname.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
util/ieee1275/grub-ofpathname.c +3 -1
@@ -46,7 +46,9 @@ int main(int argc, char **argv) } of_path =grub_util_devname_to_ofpath (argv[1 ]); -printf ("%s\n" , of_path); + +if (of_path) +printf ("%s\n" , of_path);free (of_path);
Quoted 3 lines · Eric Snowberg
fix segfault in grub-ofpathname
Signed-off-by Eric Snowberg <[email protected]>
LGTM, I will apply this next week.
Thanks,
Daniel
Quoted 6 lines · Daniel Kiper
Quoted 3 lines · Eric Snowberg
fix segfault in grub-ofpathname
Signed-off-by Eric Snowberg <[email protected]>LGTM, I will apply this next week.
Pushed!
Thanks,
Daniel