mirror of https://github.com/torvalds/linux.git
Fix incorrect error checking and memory type confusion in
efidrm_device_create(). devm_memremap() returns error pointers, not
NULL, and returns system memory while devm_ioremap() returns I/O memory.
The code incorrectly passes system memory to iosys_map_set_vaddr_iomem().
Restructure to handle each memory type separately. Use devm_ioremap*()
with ERR_PTR(-ENXIO) for WC/UC, and devm_memremap() with ERR_CAST() for
WT/WB.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| drm_sysfb.c | ||
| drm_sysfb_helper.h | ||
| drm_sysfb_modeset.c | ||
| drm_sysfb_screen_info.c | ||
| efidrm.c | ||
| ofdrm.c | ||
| simpledrm.c | ||
| vesadrm.c | ||