diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-06-28 10:54:29 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-06-28 12:03:58 +0200 |
commit | c3ea60c231446663afd6ea1054da6b7f830855ca (patch) | |
tree | 209e4fa017a12d39f1dcf4595f9cac13dfca03db /sound/core/seq/oss/seq_oss_rw.c | |
parent | bef33e19203dde434bcdf21c449e3fb4f06c2618 (diff) |
ALSA: seq: fix incorrect order of dest_client/dest_ports arguments
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 <colin.king@canonical.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/seq/oss/seq_oss_rw.c')
-rw-r--r-- | sound/core/seq/oss/seq_oss_rw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/seq/oss/seq_oss_rw.c b/sound/core/seq/oss/seq_oss_rw.c index eb1ef12181f3..1063e1b16ea0 100644 --- a/sound/core/seq/oss/seq_oss_rw.c +++ b/sound/core/seq/oss/seq_oss_rw.c @@ -174,7 +174,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 */ |