diff mbox

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

Message ID 1428726287-4062-1-git-send-email-o-takashi@sakamocchi.jp (mailing list archive)
State Accepted
Commit 3e21a19d1d6775591415efd5617375ba42c41bbd
Headers show

Commit Message

Takashi Sakamoto April 11, 2015, 4:24 a.m. UTC
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>
---
 sound/core/seq/seq_clientmgr.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Takashi Iwai April 11, 2015, 7:11 a.m. UTC | #1
At Sat, 11 Apr 2015 13:24:47 +0900,
Takashi Sakamoto wrote:
> 
> 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>

Applied, thanks.


Takashi

> ---
>  sound/core/seq/seq_clientmgr.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c
> index 4828765..edbdab8 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,
>  	if (cptr == NULL)
>  		return -ENOENT;
>  	memset(&info, 0, sizeof(info));
> +	info.client = cptr->number;
>  	info.output_pool = cptr->pool->size;
>  	info.output_room = cptr->pool->room;
>  	info.output_free = info.output_pool;
> -- 
> 2.1.0
>
diff mbox

Patch

diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c
index 4828765..edbdab8 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,
 	if (cptr == NULL)
 		return -ENOENT;
 	memset(&info, 0, sizeof(info));
+	info.client = cptr->number;
 	info.output_pool = cptr->pool->size;
 	info.output_room = cptr->pool->room;
 	info.output_free = info.output_pool;