Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7149693ybi; Mon, 8 Jul 2019 15:38:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpmhfGE6TxX501flptOM7qlN/a8CVa0Eez7mqmZ8Jy7E5IiIctkj5kOVP3ZdbZXULiFwNT X-Received: by 2002:a63:3d8d:: with SMTP id k135mr27224203pga.23.1562625518026; Mon, 08 Jul 2019 15:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625518; cv=none; d=google.com; s=arc-20160816; b=sDfSCMO51Z3IW8gbQJ5WsvIvwLOKJze2QICFkW37mzK14zI9q7Zir7v15xqE17TbPN JPKMP7KEvu5GFBBSU/D5eENWMq93vaARbd6XzQnR9j1uR0k8iORWbLVk7/2M2+otqgl8 BVc1Vh8tNknU/0/qDqAMPv1VcTgaIQ4R6qquWfbBDsApnZDH8gJCcEDIWb1R62jlHE1f uCkBczT1WTyOEPjgj3/3MCE5Uf+k5LYpVn2lESuzurNcMoR3RjQ4k8aq9aQ3HOiYSLsA 1qW7u1Ew1/kCUBJJkvL2YaKhixzuSDqMT1ypo4IbU1mG1RPtd/iWIUdWfWTB5JP0eP1v Fy8A== 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=g+1RDHUN/FZSJbMlhWDSq4BTA0GCNz/xn6S1PfLrximyeq+jLXRgT24fJM1kEhUBtv aARKYUEJ7meQUnHuv5jAsMMeBs4//hJl2jfq7uvh3uCIbHBwCK+rlroFfUhQfccROSW6 AjFpefU1gvuxlnj9J50Bba0UrdkjvOmMDp2ifHd2BdaFKVNj3cBndfN8gtu6eG+rOL/T YRDcUSUdgWqW7gn0CYSY/BoGqdutPLxK/AZbCvkREpTgjmt/w2YWhczXZ4lgJYGspIfX 8JnKqEg59IckpsDa7AlQDJQ5wWinP8FvkrjBaB7jD+zC3fhIva8eqLXNJJ7o4FyL2eca Xulw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DbRjqIgA; 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 x70si20523166pgd.311.2019.07.08.15.38.23; Mon, 08 Jul 2019 15:38:38 -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=DbRjqIgA; 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 S2389545AbfGHPaR (ORCPT + 99 others); Mon, 8 Jul 2019 11:30:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:59164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731917AbfGHPaP (ORCPT ); Mon, 8 Jul 2019 11:30:15 -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 8F7C320645; Mon, 8 Jul 2019 15:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599814; bh=PlbhsP/1l0Cu+F69o8LIBKwjU4G9z5OkTVqCpdeIhS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DbRjqIgA0ejIPMKOmQgiSzacYlI0iz1XAtivkZA4xy6lta7KpoWNzVZhQA9evyZee Xe32gA6n3+rw9u2LcHPxznixAbj9zhs2raVSTSfTaBO4bGkgkKx54riwFaZzVX9Kak V2eEfnl0rkXXTDeZaj0xOjIfh/BFgKTTvpCGq300= 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.19 44/90] ALSA: seq: fix incorrect order of dest_client/dest_ports arguments Date: Mon, 8 Jul 2019 17:13:11 +0200 Message-Id: <20190708150524.787056824@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150521.829733162@linuxfoundation.org> References: <20190708150521.829733162@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 */