Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2319557pxb; Mon, 20 Sep 2021 18:42:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtT7MCx9ELVVXUWgMlWCAET+sHf/yY24os2rQCNguaigdy0UOXa4U/LisZXnPSHaJzrwym X-Received: by 2002:a05:6e02:1b08:: with SMTP id i8mr15122584ilv.48.1632188566424; Mon, 20 Sep 2021 18:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188566; cv=none; d=google.com; s=arc-20160816; b=hshBOo+wkT1vJTvrnYzjwk2AP8CRYIaXTX2pfUhY3eGSWNBijqE/Xd6WX94Bkx5Lyf 2p2qmYfsSXS4FZJYfheu9KU8IYefaIn5yhILtAwHkOMStGUhYmhiUq/txsbgQGKIRXmj fWUTi+0hteCsY3MF21rqg9TjXQ/nQ4Ybo6W8bpjvwnU1LJXfVm718G7xgi+QO8xsDh1H GXcTM/4RtqWNHY4jMsacnw3uqV9oZL5smROOGVnE9Eib7HJXepTDShWe2NzjnQG2ePpC BlEbCDmv7sXCaCqSyvwI7xKbnXgS2zxcAgyyWmBdNbYO4ps5mLcKAk5OTXgO/CBULigv qSdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PEeABcZDKPYPqCPMLFfesEU58pqBXlVeKbFI+WgLUZQ=; b=s4urM/VqPvsFKUpPq1M3BorOJ/G4tsRrHRdOs4pJKnmuFxBvfNXmEZibRLFrniX6hJ 1pnA+Lg0y+5E/TsAq6mBAzrfy6Ec00xqh1c4fV2oxDXiWqTtcrYqtw82+J3Dnmkiyxya 1MlnymgeGvKFHB6dwGzt+jxDbnQ3LJxlTpSsRcEnkfzlzufQmU7NzEjPoZzc/GUugdR9 g0yyZjf0JN9nbhHmG/6Ossy3u3jgGFhtjwLk+W119xavTR02yayWFrEGHqGWX3vPoZG/ XxVA56jm4pcbWobpVZQHDKMImol/k7AB/DaJ4KIbmd1v/sij0DEpxaS+t4WEYLLoakZM tsAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cGojOnVE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si14023992ilj.70.2021.09.20.18.42.35; Mon, 20 Sep 2021 18:42:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cGojOnVE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237950AbhITQvQ (ORCPT + 99 others); Mon, 20 Sep 2021 12:51:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:38366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244188AbhITQt1 (ORCPT ); Mon, 20 Sep 2021 12:49:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0E5B3611ED; Mon, 20 Sep 2021 16:47:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156480; bh=oyLOSIVASuQSXrbHxkz62uBgMEAL4jGn252Izme2//I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cGojOnVEWbMvXtUCSqxouv8QtB66HRzchvhPn6APFyW6rcN+tMnAYmWVfJYwY4Fc9 GjIEDv/fAj/n2JMqfgIwidb3yYyb66Qx3qp5YFdzLHrAhRpid80g+9UUN8zjP5fsFy FzarKKyMVBn8Y00uZ8p41FjLQnrt+q0Mz6o8Iw2w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Young , Mauro Carvalho Chehab Subject: [PATCH 4.4 078/133] media: rc-loopback: return number of emitters rather than error Date: Mon, 20 Sep 2021 18:42:36 +0200 Message-Id: <20210920163915.197938092@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Young commit 6b7f554be8c92319d7e6df92fd247ebb9beb4a45 upstream. The LIRC_SET_TRANSMITTER_MASK ioctl should return the number of emitters if an invalid list was set. Cc: stable@vger.kernel.org Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/rc/rc-loopback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/rc/rc-loopback.c +++ b/drivers/media/rc/rc-loopback.c @@ -55,7 +55,7 @@ static int loop_set_tx_mask(struct rc_de if ((mask & (RXMASK_REGULAR | RXMASK_LEARNING)) != mask) { dprintk("invalid tx mask: %u\n", mask); - return -EINVAL; + return 2; } dprintk("setting tx mask: %u\n", mask);