Should check fb_read method presence instead of double check for fb_write.

Pointed by:     emaste

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Aleksandr Rybalko 2014-07-09 21:55:34 +00:00
parent fd815c0b8d
commit 79b647995d

View File

@ -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;