]> www.infradead.org Git - users/willy/pagecache.git/commit
ALSA: compress_offload: avoid 64-bit get_user()
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Dec 2024 09:33:41 +0000 (10:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 20 Dec 2024 08:49:15 +0000 (09:49 +0100)
commit6018f2fe1089b46c6c9eb136338eca7b16a92331
tree92f846629d00fdd5cbb9a4ff047b04f1a3d7a627
parent1ae40d5231732275c620a1c58c83884a979b6eb1
ALSA: compress_offload: avoid 64-bit get_user()

On some architectures, get_user() cannot read a 64-bit user variable:

arm-linux-gnueabi-ld: sound/core/compress_offload.o: in function `snd_compr_ioctl':
compress_offload.c:(.text.snd_compr_ioctl+0x538): undefined reference to `__get_user_bad'

Use an equivalent copy_from_user() instead.

Fixes: 04177158cf98 ("ALSA: compress_offload: introduce accel operation mode")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20241216093410.377112-2-arnd@kernel.org
sound/core/compress_offload.c