mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ALSA: seq: fix passing wrong pointer in function call of compatibility layer
This commit is a fix for Linux 4.9-rc1.
In former commit, a function call of compatibility layer for ALSA sequencer
core was obsoleted by an alternative. Although, the alternative gets a
pointer to kernel stack due to mis-programming. As a result, ALSA sequencer
core unexpectedly refers over kernel stack.
Reported-by: Dan Carpenter <[email protected]>
Fixes: 8ce8eb601c ("ALSA: seq: add an alternative way to handle ioctl requests")
Signed-off-by: Takashi Sakamoto <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
4875a5f721
commit
30c0702246
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsigned
|
|||
goto error;
|
||||
data->kernel = NULL;
|
||||
|
||||
err = snd_seq_kernel_client_ctl(client->number, cmd, &data);
|
||||
err = snd_seq_kernel_client_ctl(client->number, cmd, data);
|
||||
if (err < 0)
|
||||
goto error;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue