Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7151374ybi; Mon, 8 Jul 2019 15:40:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQvUPCJWaGDv81is/rhdbxPOhLxL0pIS2PeKxb/ENJCuK5LZgJFDVMee1vKP2+5hWPmKbA X-Received: by 2002:a65:63c4:: with SMTP id n4mr26326019pgv.44.1562625652374; Mon, 08 Jul 2019 15:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625652; cv=none; d=google.com; s=arc-20160816; b=wgQoHvdpGQ/Qzon/M+A5oGxcEv03yW9vb76/yzrRV1myHeEpclF0ZyY+zLhzhZeUkn 4Lf7AkcesMeXMLCVFIKkmUsSmvfcNRtqYry0xwrpYwkQr03hkqoCf5EYIfSCEn1Kb/Vb gm5cJSIr8+h+2EAdfBM28zkHMKghAQqcVOnw1NPqLMj8q8w4MWtE8cFijxEFjvY0wDCN thl/ZPsPJE+djbNrmNeuob/has0yM38CWcR9QJOV0OaJDmMEosINehuWYv9njc3h1wwb u2sX+HfgSgifmC/NXM3/3lEyXyyyqJd6plTCwyFh6RFWZwsKTVjnoTz+SJ8/ct/vDyPX HFxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GR0d6BUFScAIu7NmWeR6rwPIago4+KJtsKIThFYcKAw=; b=a8OMvxPjkbqOaVJlOYwjXzJjGFhtJvUIyVM1bC1ka6cSq8QIzPzqsed3P6UFlevM3z VFELDm19L5IMj9THSmNZntevyAGXcav4+rvhKOudgpAhQpU3qT/yo4vda5bSDUcZDsQ0 W+opYAYo7e1lH8dQBKO/p6jP6HUP61VHrWGXsV+WqoI3wHvpwkzXXFf5rT52uG4LNDAs TiaOnCQcDNHc4mZSlXdBb63F4PsSaG6+Z4Sz6bK2xIDcRKWb4cQPAFoyNcBO8b8AiDS4 BCxzAYceLr6pE61JCVnUDILAxh1cIfdq2i3HUhIHmWW1CZ6Z0e7Bs+aoaLLA8QuP2wJH 4zRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="swNI/oWW"; 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 m9si19115975pgq.336.2019.07.08.15.40.37; Mon, 08 Jul 2019 15:40:52 -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; dkim=pass header.i=@kernel.org header.s=default header.b="swNI/oWW"; 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 S2403823AbfGHPnF (ORCPT + 99 others); Mon, 8 Jul 2019 11:43:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:51832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388363AbfGHPYb (ORCPT ); Mon, 8 Jul 2019 11:24:31 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5DC3A2173C; Mon, 8 Jul 2019 15:24:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599470; bh=PlbhsP/1l0Cu+F69o8LIBKwjU4G9z5OkTVqCpdeIhS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=swNI/oWWLIoL2QTUU4gfIKnXZIBqQ5tbmI3CNuzdDkG7izMFxrTabDWBk25uy3nEa /85BeNCjsyrB2rLGZIHc/VaRR3/TFgi9EF0scetAC680daMz+8ByUWWfGPThweMD4b y8ynnnjyiMaCd5FVryspjfW3KGNMs5nnqLdaNVyo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Takashi Iwai Subject: [PATCH 4.14 26/56] ALSA: seq: fix incorrect order of dest_client/dest_ports arguments Date: Mon, 8 Jul 2019 17:13:18 +0200 Message-Id: <20190708150522.089164433@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150514.376317156@linuxfoundation.org> References: <20190708150514.376317156@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- 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 */