Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1191985ybn; Wed, 2 Oct 2019 12:12:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCfRfcNH8CJewr/bVYMKAEb5NLKWQl+y6K1TEBuTBlfc2A+fVIeDpn+RPyNUX9rRC1x1i2 X-Received: by 2002:a17:906:5847:: with SMTP id h7mr4522838ejs.218.1570043565750; Wed, 02 Oct 2019 12:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570043565; cv=none; d=google.com; s=arc-20160816; b=jOZbVdqI6CZt1ei4bj00JxNZ+VmKdS6BsBDky/HIAFsMh5v/Es2YiYW6yoAtOIIOSl ZeUyLXal+DjBHFalMQqtL5zbJh/L7wEDV50QgAcbvHkrVxvx1miJjR6cwJTPtVOqXh95 Bg/iUd+DaHSBKN+H+LfJrjSub0mAg2UuK9/TgZfMTK1vHOI4NSBcgHoklkyzluqY4JWh lytYNc8mbmjrBuy2OwpxmbKkTYgnnYRpa6GauzCL1AIJsrln8lNcdYUgikX40jOUF3XH A49n/wLmaei9W3udUBz0J1Sf9NpCXNGuIBTetSOZM2Yv6XIw7kuAH6lAE3Ke182gEzd4 NRpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=DWI/hBP8xyQBOTaSgwgGLzJC3Qdqt0iZ7gkPS/YAq2w=; b=dMZJBdbLCR5AFGYp7UQFaxBm2NftT35pgouC1O0G7oZbdHNh8dJa90xmG3DkZHsvdn doWv2vPrSJaR+NahPfbDHkLu62oAICqtHlDWZ+c6wWEdf/KrHjLsa2ASqicRjvv3mr3g N0360erDMY8EByI4T4nt/7HXTJ4aYJqg6mLcUs9loeImku7XgQq65MwMKIZJWTnlRYMR pU3dkQAX4EfULW8MpfuDXiYWkmUsYZ+vOHe87GwYxAmse3xgi6/eKobMbc7Ezzt4832u 5gGaLfXpkdKXgOEBBelc88qWb7MRS4Sp2Cug+4RlSSwvBzv8WOPr39u2I47rgoJ9Z94b XvWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d19si1145ejy.353.2019.10.02.12.12.21; Wed, 02 Oct 2019 12:12:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729989AbfJBTLM (ORCPT + 99 others); Wed, 2 Oct 2019 15:11:12 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:35766 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729293AbfJBTIP (ORCPT ); Wed, 2 Oct 2019 15:08:15 -0400 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iFjyu-00035r-3B; Wed, 02 Oct 2019 20:08:12 +0100 Received: from ben by deadeye with local (Exim 4.92.1) (envelope-from ) id 1iFjyq-0003gX-I6; Wed, 02 Oct 2019 20:08:08 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, Denis Kirjanov , "Colin Ian King" , "Takashi Iwai" Date: Wed, 02 Oct 2019 20:06:51 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 83/87] ALSA: seq: fix incorrect order of dest_client/dest_ports arguments In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.75-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Colin Ian King commit c3ea60c231446663afd6ea1054da6b7f830855ca upstream. 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 Signed-off-by: Takashi Iwai Signed-off-by: Ben Hutchings --- 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(-) --- a/sound/core/seq/oss/seq_oss_ioctl.c +++ b/sound/core/seq/oss/seq_oss_ioctl.c @@ -62,7 +62,7 @@ static int snd_seq_oss_oob_user(struct s 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); --- 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, 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 */