ALSA: compat_ioctl: avoid compat_alloc_user_space
authorArnd Bergmann <arnd@arndb.de>
Fri, 18 Sep 2020 09:56:19 +0000 (11:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Sep 2020 08:37:07 +0000 (10:37 +0200)
commit18d122c0287b29e70bc312a994c7ee79738cec77
tree5310fec9f6a909f465b97350cf4fda5105149361
parent2b987515e1d18836d9df96a5876290c8c8208348
ALSA: compat_ioctl: avoid compat_alloc_user_space

Using compat_alloc_user_space() tends to add complexity
to the ioctl handling, so I am trying to remove it everywhere.

The two callers in sound/core can rewritten to just call
the same code that operates on a kernel pointer as the
native handler.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200918095642.1446243-1-arnd@arndb.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c
sound/core/control_compat.c
sound/core/hwdep.c
sound/core/hwdep_compat.c