summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2016-11-12 18:27:42 +0200
committerDan McDonald <danmcd@omniti.com>2017-02-28 21:07:26 -0500
commitff157c8690676593df83d0602f60f960862d3492 (patch)
tree3893dc57a4d3160df29dd10b3133fea1ddc1b32b
parent04f8e09339a9f05578b71312033d46d49376f828 (diff)
downloadillumos-joyent-ff157c8690676593df83d0602f60f960862d3492.tar.gz
7896 loader.efi: Don't set *dev in the zfs root case, it may be NULL
Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@omniti.com>
-rw-r--r--usr/src/boot/sys/boot/efi/loader/devicename.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/usr/src/boot/sys/boot/efi/loader/devicename.c b/usr/src/boot/sys/boot/efi/loader/devicename.c
index 8fc80ebbc5..64a417dacc 100644
--- a/usr/src/boot/sys/boot/efi/loader/devicename.c
+++ b/usr/src/boot/sys/boot/efi/loader/devicename.c
@@ -120,7 +120,6 @@ efi_parsedev(struct devdesc **dev, const char *devspec, const char **path)
free(idev);
return (err);
}
- *dev = idev;
cp = strchr(np + 1, ':');
} else
#endif