diff options
| author | 2026-03-11 14:46:52 +0800 | |
|---|---|---|
| committer | 2026-03-31 13:04:51 +0200 | |
| commit | 5e77923a3eb39cce91bf08ed7670f816bf86d4af (patch) | |
| tree | 22173db4fb373021d554bbef3c44e2777df8f547 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | drm/ast: dp501: Fix initialization of SCU2C (diff) | |
drm/sysfb: Fix efidrm error handling and memory type mismatch
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: 32ae90c66fb6 ("drm/sysfb: Add efidrm for EFI displays")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260311064652.2903449-1-nichen@iscas.ac.cn
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
