From a526bddb8de55e8f6a0123b43052dea76812128b Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 16 Jan 2019 20:37:07 -0500 Subject: [PATCH] bootloader: Add missing NULL check. --- src/system/boot/loader/partitions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/boot/loader/partitions.cpp b/src/system/boot/loader/partitions.cpp index ee8d2321ea..651bf33c36 100644 --- a/src/system/boot/loader/partitions.cpp +++ b/src/system/boot/loader/partitions.cpp @@ -426,7 +426,7 @@ Partition::Scan(bool mountFileSystems, bool isBootDevice) } // scan for file systems - if (mountFileSystems) + if (mountFileSystems && bestFSModule != NULL) return _Mount(bestFSModule, NULL); return B_ENTRY_NOT_FOUND;