mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
ALSA: seq: Fix snd_seq_call_port_info_ioctl in compat mode
commit9586495dc3upstream. This reverts one hunk of commitef44a1ec6e("ALSA: sound/core: use memdup_user()"), which replaced a number of kmalloc followed by memcpy with memdup calls. In this case, we are copying from a struct snd_seq_port_info32 to a struct snd_seq_port_info, but the latter is 4 bytes longer than the 32-bit version, so we need to separate kmalloc and copy calls. Fixes:ef44a1ec6e('ALSA: sound/core: use memdup_user()') Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
parent
1fe687657c
commit
b88eef285f
1 changed files with 5 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue