aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2015-04-11 00:24:47 -0400
committerTakashi Iwai <tiwai@suse.de>2015-04-11 03:11:19 -0400
commit3e21a19d1d6775591415efd5617375ba42c41bbd (patch)
treef1a14c8fe92f8a4311b40b036513b46418d9f04a
parentf4d3129c2b580ad2b82aa3211a6216bbf7ad007c (diff)
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: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/core/seq/seq_clientmgr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c
index 48287651ac77..edbdab85fc02 100644
--- a/sound/core/seq/seq_clientmgr.c
+++ b/sound/core/seq/seq_clientmgr.c
@@ -1879,6 +1879,7 @@ static int snd_seq_ioctl_get_client_pool(struct snd_seq_client *client,
1879 if (cptr == NULL) 1879 if (cptr == NULL)
1880 return -ENOENT; 1880 return -ENOENT;
1881 memset(&info, 0, sizeof(info)); 1881 memset(&info, 0, sizeof(info));
1882 info.client = cptr->number;
1882 info.output_pool = cptr->pool->size; 1883 info.output_pool = cptr->pool->size;
1883 info.output_room = cptr->pool->room; 1884 info.output_room = cptr->pool->room;
1884 info.output_free = info.output_pool; 1885 info.output_free = info.output_pool;