From: Vladimir Serbinenko Date: Mon, 26 Jan 2015 08:42:04 +0000 (+0100) Subject: lib/syslinux_parse: Add missing error check. X-Git-Tag: 2.02-beta3~497 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49978c5c4f5a88a8065042133e5d4b7e3c472eaa;p=thirdparty%2Fgrub.git lib/syslinux_parse: Add missing error check. Found by: Coverity scan. --- diff --git a/grub-core/lib/syslinux_parse.c b/grub-core/lib/syslinux_parse.c index 1927c4fda..f6053267f 100644 --- a/grub-core/lib/syslinux_parse.c +++ b/grub-core/lib/syslinux_parse.c @@ -846,7 +846,12 @@ write_entry (struct output_buffer *outbuf, { grub_err_t err; if (curentry->comments) - print (outbuf, curentry->comments, grub_strlen (curentry->comments)); + { + err = print (outbuf, curentry->comments, + grub_strlen (curentry->comments)); + if (err) + return err; + } { struct syslinux_say *say; for (say = curentry->say; say && say->next; say = say->next);