mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 06:01:06 +01:00
3cbf6518d6
fb_getinfo is badly designed as it returns either the info if the driver have the method or ENXIO via the kobj stuff if the driver doesn't have it. Add a default method that returns NULL as the code already checks this and it avoid changing the interface. None of the drm drivers supported have this method and it sometimes fails and panic when loading them (for now only usb-c docks seems to be affected). MFC after: 3 days Sponsored by: Beckhoff Automation GmbH & Co. KG
17 lines
231 B
Objective-C
17 lines
231 B
Objective-C
#include <sys/bus.h>
|
|
#include <sys/fbio.h>
|
|
|
|
INTERFACE fb;
|
|
|
|
CODE {
|
|
static struct fb_info *
|
|
fb_default_getinfo(device_t dev)
|
|
{
|
|
return (NULL);
|
|
}
|
|
};
|
|
|
|
METHOD struct fb_info * getinfo {
|
|
device_t dev;
|
|
} DEFAULT fb_default_getinfo;
|