summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-07-09 13:22:02 +0300
committerRobert Mustacchi <rm@joyent.com>2018-08-28 23:41:21 +0000
commit322e343b7c538c565d91cb11d00fbe6266834e28 (patch)
tree27ccdc6b1aff86833308431eb9c90025526c6e44
parent522e4551ca5d7b72fe4d4af1ff92521ab19842c7 (diff)
downloadillumos-joyent-322e343b7c538c565d91cb11d00fbe6266834e28.tar.gz
9766 loader: 'mbi' may be used uninitialized
Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r--usr/src/boot/sys/boot/common/multiboot2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/boot/sys/boot/common/multiboot2.c b/usr/src/boot/sys/boot/common/multiboot2.c
index 3209c98c06..386bcf2b7a 100644
--- a/usr/src/boot/sys/boot/common/multiboot2.c
+++ b/usr/src/boot/sys/boot/common/multiboot2.c
@@ -803,6 +803,7 @@ multiboot2_exec(struct preloaded_file *fp)
i386_getdev((void **)(&rootdev), NULL, NULL);
#endif
+ mbi = NULL;
error = EINVAL;
if (rootdev == NULL) {
printf("can't determine root device\n");