Module Name:    src
Committed By:   thorpej
Date:           Sat May 23 16:40:42 UTC 2020

Modified Files:
        src/sys/stand/efiboot: exec.c

Log Message:
If a device tree overlay does not have a "compatible" match, don't
load it.  (Oops, missing return statement.)


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/stand/efiboot/exec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/stand/efiboot/exec.c
diff -u src/sys/stand/efiboot/exec.c:1.14 src/sys/stand/efiboot/exec.c:1.15
--- src/sys/stand/efiboot/exec.c:1.14	Thu May 14 19:20:08 2020
+++ src/sys/stand/efiboot/exec.c	Sat May 23 16:40:41 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.c,v 1.14 2020/05/14 19:20:08 riastradh Exp $ */
+/* $NetBSD: exec.c,v 1.15 2020/05/23 16:40:41 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2019 Jason R. Thorpe
@@ -199,6 +199,7 @@ apply_overlay(void *dtbo)
 
 	if (!efi_fdt_overlay_is_compatible(dtbo)) {
 		printf("boot: incompatible overlay\n");
+		return;
 	}
 
 	int fdterr;

Reply via email to