提交 3e21a19d 编写于 作者: T Takashi Sakamoto 提交者: Takashi Iwai

ALSA: seq: fill client ID in return value of pool operation

The returned value of 'get/seq client pool' operation has zeroed value
for its client ID, against requested client ID.

This commit fix the bug by filling it with index value of referred
client object.
Signed-off-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 f4d3129c
...@@ -1879,6 +1879,7 @@ static int snd_seq_ioctl_get_client_pool(struct snd_seq_client *client, ...@@ -1879,6 +1879,7 @@ static int snd_seq_ioctl_get_client_pool(struct snd_seq_client *client,
if (cptr == NULL) if (cptr == NULL)
return -ENOENT; return -ENOENT;
memset(&info, 0, sizeof(info)); memset(&info, 0, sizeof(info));
info.client = cptr->number;
info.output_pool = cptr->pool->size; info.output_pool = cptr->pool->size;
info.output_room = cptr->pool->room; info.output_room = cptr->pool->room;
info.output_free = info.output_pool; info.output_free = info.output_pool;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册