OSDN Git Service

fbdev: sbuslib: remove compat_alloc_user_space usage
authorArnd Bergmann <arnd@arndb.de>
Fri, 18 Sep 2020 10:09:06 +0000 (12:09 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 25 Sep 2020 14:34:50 +0000 (16:34 +0200)
commitca6cf78322d1b84744dd2772546c0e8f8707c0ad
tree53ddfef8ab1447314b8fff9866dc8e8561975b69
parent3f6195d10fffb85dd09833a75c793cb5be7f74e2
fbdev: sbuslib: remove compat_alloc_user_space usage

This is one of the last users of compat_alloc_user_space()
and copy_in_user(). The actual handler is implemented in the
same file and could be shared, but as I couldn't test this
properly I leave the native case alone and just make a straight
copy of it for the compat case, with a minimum set of
modifications.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200918100926.1447563-3-arnd@arndb.de
drivers/video/fbdev/sbuslib.c