Skip to content

Commit 0c03b8b

Browse files
rxrblnUlrich Hecht
authored andcommitted
fbdev: tcx.c fix mem_map to correct smem_start offset
commit 35fa2b4bf96415b88d7edaa5cf8af5185d9ce76e upstream. 403ae52 ("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: 403ae52 ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ulrich Hecht <uli@kernel.org>
1 parent 2d72d91 commit 0c03b8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/video/fbdev/tcx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ static int tcx_probe(struct platform_device *op)
435435
j = i;
436436
break;
437437
}
438-
par->mmap_map[i].poff = op->resource[j].start;
438+
par->mmap_map[i].poff = op->resource[j].start - info->fix.smem_start;
439439
}
440440

441441
info->flags = FBINFO_DEFAULT;

0 commit comments

Comments
 (0)