From: Eric Snowberg <eric.snowberg@oracle.com>
To: grub-devel@gnu.org
Cc: daniel.kiper@oracle.com, Eric Snowberg <eric.snowberg@oracle.com>
Subject: [PATCH resend] ieee1275: fix segfault in grub-ofpathname
Date: Tue, 28 Nov 2017 11:51:39 -0800 [thread overview]
Message-ID: <1511898699-20545-1-git-send-email-eric.snowberg@oracle.com> (raw)
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);
next reply other threads:[~2017-11-28 19:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-28 19:51 Eric Snowberg [this message]
2017-11-30 12:52 ` [PATCH resend] ieee1275: fix segfault in grub-ofpathname Daniel Kiper
2017-12-06 12:13 ` Daniel Kiper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1511898699-20545-1-git-send-email-eric.snowberg@oracle.com \
--to=eric.snowberg@oracle.com \
--cc=daniel.kiper@oracle.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).