ALSA: seq: fix incorrect order of dest_client/dest_ports arguments
Subsystems (2)
PATCH 1/1 ALSA: seq: fix incorrect order of dest_client/dest_ports arguments
From: Colin Ian King <[email protected]>
There are two occurrances of a call to snd_seq_oss_fill_addr where the dest_client and dest_port arguments are in the wrong order. Fix this by swapping them around.
Addresses-Coverity: ("Arguments in wrong order")
Signed-off-by Colin Ian King <[email protected]>
--- sound/core/seq/oss/seq_oss_ioctl.c | 2 +- sound/core/seq/oss/seq_oss_rw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/core/seq/oss/seq_oss_ioctl.c +1 -1
@@ -49,7 +49,7 @@ static int snd_seq_oss_oob_user(struct seq_oss_devinfo *dp, void __user *arg)if (copy_from_user (ev, arg,8 ))return -EFAULT ;memset (&tmpev,0 ,sizeof (tmpev)); -snd_seq_oss_fill_addr (dp, &tmpev, dp->addr.port, dp->addr.client); +snd_seq_oss_fill_addr (dp, &tmpev, dp->addr.client, dp->addr.port); tmpev.time.tick =0 ;if (!snd_seq_oss_process_event (dp, (union evrec *)ev, &tmpev)) {snd_seq_oss_dispatch (dp, &tmpev,0 ,0 );
sound/core/seq/oss/seq_oss_rw.c +1 -1
@@ -161,7 +161,7 @@ insert_queue(struct seq_oss_devinfo *dp, union evrec *rec, struct file *opt)memset (&event,0 ,sizeof (event));/* set dummy -- to be sure */ event.type =SNDRV_SEQ_EVENT_NOTEOFF ; -snd_seq_oss_fill_addr (dp, &event, dp->addr.port, dp->addr.client); +snd_seq_oss_fill_addr (dp, &event, dp->addr.client, dp->addr.port);if (snd_seq_oss_process_event (dp, rec, &event))return 0 ;/* invalid event - no need to insert queue */
Signature · 1 line
2.20.1
Takashi Iwai
AppliedQuoted 9 lines · Colin King
From: Colin Ian King <[email protected]>
There are two occurrances of a call to
snd_seq_oss_fill_addrwhere thedest_clientanddest_portarguments are in the wrong order. Fix this by swapping them around.Addresses-Coverity: ("Arguments in wrong order")
Signed-off-by Colin Ian King <[email protected]>
Applied, thanks.
Takashi