Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7151115ybi; Mon, 8 Jul 2019 15:40:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq+WZnDzNN2zTjnAMh+SkfHqMZyqGGpuywRIo++5bpoAqCV+LJkoxVMbPx30SwvPoCtCTV X-Received: by 2002:a65:430a:: with SMTP id j10mr27218931pgq.374.1562625632578; Mon, 08 Jul 2019 15:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625632; cv=none; d=google.com; s=arc-20160816; b=aIwuvLx//Jzw93wV225VDbQsU+DjR6I3Vwu1+6xuiyAScnJpatGSjicWaYzp7cb83E s+oym6KjQAsM8dVSp+0chlxuGx6JoV/VB0aKFpk8wMKpYSa1H83RiX/AK90UU591dNZV ZLMdViDYAQ3eAmY5NoMAmr2E8EWYn212WCWxBDe8/46CHp7aVKCwPpc38p3gnDEJNYla HFFBpyuozULxfpPUaauLhHQc412ynw5c/dP6DFtr5RcaXgInoYm+hW0tT5WXHKsnLlks efi7YgzMK8iF6EQTHa4/vVw1XFCyW16EVcvtD5J0zKBDN/zx/nawQr8PeYFTFQ8S1Elk WmpQ== 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=rWDifr23Fo27gxCifx48pT8IxQGU28H7g4lwPXBfrJdIZXYa7UN+kkxGVSFjnCDwfd 4Y0CoXAHxyomc4wI0mtmxCP7ZXoFeBVEBuhAGgT568+Zsgpg/M9wHbqvRF8hGqfoO3Gl /asQyfKI3wgbgsUaUN5V4mqv4RGO/Yhe400OKd3vVjGjeeIFW9R7Ho/JA/lhu9qV2WtR c9keumg7gBn3Y92jLYIDC6apn9sXxmjJMF8p0be9Sn5hJYhlt1eDIVa7mYe9gWr+PJwW 2uU/8T7qUFvp/mS2XOLS+xIxC/8ST2RW6OBiuitgqTWmE3p95OSaTkcVCxY06unr493Q iQIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LliRj3q5; 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 c13si699283pjo.75.2019.07.08.15.40.17; Mon, 08 Jul 2019 15:40:32 -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=LliRj3q5; 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 S1732760AbfGHPdN (ORCPT + 99 others); Mon, 8 Jul 2019 11:33:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:35214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390299AbfGHPdM (ORCPT ); Mon, 8 Jul 2019 11:33:12 -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 BC2A821743; Mon, 8 Jul 2019 15:33:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599991; bh=PlbhsP/1l0Cu+F69o8LIBKwjU4G9z5OkTVqCpdeIhS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LliRj3q5HO6mVo5thflTnto48Pd54G6MnnJ11y0df1zwPfNUywK3Y//HgIsR/zrdf jZY/wlJFZX7JwaJQGoQiZlrQD7IGNTbZZbmMFSbWDdTWPc11FVx0uuDJGrrFuadCME V6BYj8J7cf/xHzEWkgdYcb/PA9sNdj/DLHxVge5w= 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 5.1 59/96] ALSA: seq: fix incorrect order of dest_client/dest_ports arguments Date: Mon, 8 Jul 2019 17:13:31 +0200 Message-Id: <20190708150529.688888192@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150526.234572443@linuxfoundation.org> References: <20190708150526.234572443@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 */