⬢ DragonFlyBSD Kernel Audit
DF-5777 / fix.diff
← back to finding ↓ download raw
--- sys/dev/video/fb/splash.c
+++ sys/dev/video/fb/splash.c
@@ -201,7 +201,8 @@
 int
 splash(video_adapter_t *adp, int on)
 {
-	if (splash_decoder != NULL)
+	/* guard ->splash like init (line 83) and term (line 193) */
+	if (splash_decoder != NULL && splash_decoder->splash != NULL)
 		return (*splash_decoder->splash)(adp, on);
 	return ENODEV;
 }