svn commit: r305537 - stable/11/sys/boot/efi/loader
Andrew Turner
andrew at FreeBSD.org
Wed Sep 7 13:57:07 UTC 2016
Author: andrew
Date: Wed Sep 7 13:57:06 2016
New Revision: 305537
URL: https://svnweb.freebsd.org/changeset/base/305537
Log:
MFC 304801:
Don't set *dev in the zfs root case, it may be NULL and will correctly be
set later in the function. This fixes a potential NULL pointer dereference
found on arm64.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Modified:
stable/11/sys/boot/efi/loader/devicename.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/boot/efi/loader/devicename.c
==============================================================================
--- stable/11/sys/boot/efi/loader/devicename.c Wed Sep 7 13:51:34 2016 (r305536)
+++ stable/11/sys/boot/efi/loader/devicename.c Wed Sep 7 13:57:06 2016 (r305537)
@@ -120,7 +120,6 @@ efi_parsedev(struct devdesc **dev, const
free(idev);
return (err);
}
- *dev = idev;
cp = strchr(np + 1, ':');
} else
#endif
More information about the svn-src-stable-11
mailing list