aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2016-10-11 20:05:50 -0400
committerTakashi Iwai <tiwai@suse.de>2016-10-12 14:09:36 -0400
commit30c0702246ac1ba955aa97d698610169242f59f1 (patch)
tree1631a7f584b3d752f7fdb5f572ebf78b315034a7 /sound/core
parent4875a5f7218068cdeea5f998330dfa3d118b2fea (diff)
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: 8ce8eb601c71 ("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>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/seq/seq_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/seq/seq_compat.c b/sound/core/seq/seq_compat.c
index fce5697e4261..8c3507216676 100644
--- a/sound/core/seq/seq_compat.c
+++ b/sound/core/seq/seq_compat.c
@@ -58,7 +58,7 @@ static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsigned
58 goto error; 58 goto error;
59 data->kernel = NULL; 59 data->kernel = NULL;
60 60
61 err = snd_seq_kernel_client_ctl(client->number, cmd, &data); 61 err = snd_seq_kernel_client_ctl(client->number, cmd, data);
62 if (err < 0) 62 if (err < 0)
63 goto error; 63 goto error;
64 64