* [PATCH resend] ieee1275: fix segfault in grub-ofpathname
@ 2017-11-28 19:51 Eric Snowberg
2017-11-30 12:52 ` Daniel Kiper
0 siblings, 1 reply; 3+ messages in thread
From: Eric Snowberg @ 2017-11-28 19:51 UTC (permalink / raw)
To: grub-devel; +Cc: daniel.kiper, Eric Snowberg
fix segfault in grub-ofpathname
Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
---
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(-)
diff --git a/util/ieee1275/grub-ofpathname.c b/util/ieee1275/grub-ofpathname.c
index 8e5d766cb..300fbddad 100644
--- a/util/ieee1275/grub-ofpathname.c
+++ b/util/ieee1275/grub-ofpathname.c
@@ -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);
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH resend] ieee1275: fix segfault in grub-ofpathname
2017-11-28 19:51 [PATCH resend] ieee1275: fix segfault in grub-ofpathname Eric Snowberg
@ 2017-11-30 12:52 ` Daniel Kiper
2017-12-06 12:13 ` Daniel Kiper
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Kiper @ 2017-11-30 12:52 UTC (permalink / raw)
To: Eric Snowberg; +Cc: grub-devel
On Tue, Nov 28, 2017 at 11:51:39AM -0800, Eric Snowberg wrote:
> fix segfault in grub-ofpathname
>
> Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
LGTM, I will apply this next week.
Thanks,
Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH resend] ieee1275: fix segfault in grub-ofpathname
2017-11-30 12:52 ` Daniel Kiper
@ 2017-12-06 12:13 ` Daniel Kiper
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Kiper @ 2017-12-06 12:13 UTC (permalink / raw)
To: Eric Snowberg; +Cc: grub-devel
On Thu, Nov 30, 2017 at 01:52:17PM +0100, Daniel Kiper wrote:
> On Tue, Nov 28, 2017 at 11:51:39AM -0800, Eric Snowberg wrote:
> > fix segfault in grub-ofpathname
> >
> > Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
>
> LGTM, I will apply this next week.
Pushed!
Thanks,
Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-06 12:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-28 19:51 [PATCH resend] ieee1275: fix segfault in grub-ofpathname Eric Snowberg
2017-11-30 12:52 ` Daniel Kiper
2017-12-06 12:13 ` Daniel Kiper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).