1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268472

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;