diff --git a/sys/dev/fb/fbd.c b/sys/dev/fb/fbd.c index b75ca33516c4..66d0e8dea499 100644 --- a/sys/dev/fb/fbd.c +++ b/sys/dev/fb/fbd.c @@ -246,7 +246,7 @@ fb_probe(struct fb_info *info) return (ENXIO); if (info->fb_write != NULL) { - if (info->fb_write == NULL) { + if (info->fb_read == NULL) { return (EINVAL); } info->fb_flags |= FB_FLAG_NOMMAP;