]> www.infradead.org Git - users/dwmw2/linux.git/commit
ALSA: pcm: use new array-copying-wrapper
authorChenyuan Yang <chenyuan0y@gmail.com>
Mon, 27 Jan 2025 16:06:55 +0000 (10:06 -0600)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Jan 2025 07:48:08 +0000 (08:48 +0100)
commit519b2b14bef70922bd64117a978ea7f2a683b75b
treef5464e1645dc99abcc31671713afc8ca035a3825
parentd85fc52cbb9a719c8335d93a28d6a79d7acd419f
ALSA: pcm: use new array-copying-wrapper

This is found by our static analysis tool.

pcm_native.c utilizes memdup_user() to copy an array from userspace.

There is a new wrapper, specifically designed for copying arrays. Use
this one instead.

This is similar to the
commit 3e91a38de1dc ("fbdev: viafb: use new array-copying-wrapper").

Signed-off-by: Chenyuan Yang <chenyuan0y@gmail.com>
Link: https://patch.msgid.link/20250127160655.3119470-1-cy1yang@outlook.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c