Skip to content

Commit 30c0702

Browse files
takaswietiwai
authored andcommitted
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 <dan.carpenter@oracle.com> Fixes: 8ce8eb6 ("ALSA: seq: add an alternative way to handle ioctl requests") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 4875a5f commit 30c0702

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/core/seq/seq_compat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsigned
5858
goto error;
5959
data->kernel = NULL;
6060

61-
err = snd_seq_kernel_client_ctl(client->number, cmd, &data);
61+
err = snd_seq_kernel_client_ctl(client->number, cmd, data);
6262
if (err < 0)
6363
goto error;
6464

0 commit comments

Comments
 (0)