⬢ DragonFlyBSD Kernel Audit
DF-5019 / fix.diff
← back to finding ↓ download raw
--- tbridge.c	2026-09-26
+++ tbridge.c	2026-09-26
@@ -262,6 +262,11 @@ tbridge_dev_ioctl(struct dev_ioctl_args *ap)
 		break;
 
 	case TBRIDGE_GETRESULT:
+		if (tbridge_testcase == NULL) {
+			/* No TBRIDGE_LOADTEST was issued for this test. */
+			return (EINVAL);
+		}
+ 
 		error = kthread_create(tbridge_curtest->tb_run, NULL, &td,
 		    "testrunner");
 		if (error)