The drm_format_info() function returns NULL if the format is
unsupported, but the simplefb_get_validated_format() is expected to
return error pointers. If we propagate the NULL return then it will
lead to a NULL dereference in the callers. Swap the NULL and trade it
in for an ERR_PTR(-EINVAL).
Fixes:
|
||
|---|---|---|
| .. | ||
| arcpgu.c | ||
| cirrus.c | ||
| gm12u320.c | ||
| hx8357d.c | ||
| ili9225.c | ||
| ili9341.c | ||
| ili9486.c | ||
| Kconfig | ||
| Makefile | ||
| mi0283qt.c | ||
| repaper.c | ||
| simpledrm.c | ||
| st7586.c | ||
| st7735r.c | ||