Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: tcx.c fix mem_map to correct smem_start offset

403ae52ac047 ("sparc: fix drivers/video/tcx.c warning") changed the
physbase initializing breaking the user-space mmap, e.g. for Xorg
entirely.

Fix fbdev mmap table so the sbus mmap helper work correctly, and
not try to map vastly (physbase) offset memory.

Fixes: 403ae52ac047 ("sparc: fix drivers/video/tcx.c warning")
Cc: <stable@vger.kernel.org>
Signed-off-by: René Rebe <rene@exactco.de>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

René Rebe and committed by
Helge Deller
35fa2b4b 7ecb5c36

+1 -1
+1 -1
drivers/video/fbdev/tcx.c
··· 428 428 j = i; 429 429 break; 430 430 } 431 - par->mmap_map[i].poff = op->resource[j].start; 431 + par->mmap_map[i].poff = op->resource[j].start - info->fix.smem_start; 432 432 } 433 433 434 434 info->fbops = &tcx_ops;