Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1528066pxb; Thu, 16 Sep 2021 09:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHaiHquDW8K4zf9RlhtGZeGL15zCVRHRn/yxd7GLsYcYbNjRMJUwPb9dv6OcRTDaMRJWdb X-Received: by 2002:a17:906:5408:: with SMTP id q8mr6975520ejo.54.1631809014216; Thu, 16 Sep 2021 09:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631809014; cv=none; d=google.com; s=arc-20160816; b=IFWjXrCnx1QgR8iMoUpyy39mz0HuhbbthtZ1T1kbawQmCGN3JoyTtTJYV8cNRGLwXZ oAIezCf4MsjvW5uWS6Xx8PhmR+HQgnglFmeKcXjq2DmEfZwzG1jtA/W05FnPC2QHRJEP GSdM/4vT/s/r0umjTpDOXqThYs20Ifo522/F/vvRlfNtHbq68eTbmAW7xik1xiqE7Cuo qImWQ6hfFG5lp/xQGzQxQBXhCkQQo5w5A5MFhqepAKeV88zYS0gOCCNVPt1BS6Hadt54 OomSYadi6zy0+Zn4ynRpvqHFjTkINGhFP/3R3Z6wFEhfv04OyqhAYSZzv4D8kIBoTU5y X4/w== 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=0PjlKLKCJdyFXZi+DJoRV1yeXSuSqPynCO6hFYh3MOA=; b=rCVgvg0CdL5yVn1vosiV36pAAP1NvoUe8RME4J8jiZh84wzBvLYtAps0/4rFLrtaGX 5dSvBxzhmS4Q3yP1D3LFLvkBWA26qeeLZBW7BzwNcN7H6LsBeLjI46HdA+vHRhf/oc9r Yy8DKogev4muC/y09u3hJjIJjnFkC8LvCaijksdCXi6Lv9LmReyuCjYx16amQemUBxVs 5YwgoDBpVjWgHsNJFSoYxIwbSho5cAP+yOHnYlLEsibNLEMUB8NJWlUdVMhWw7G4bwgK tsPemM0NjhXiNGhk4i6g26/CuVomyhoJV0hjKd0JiQHH6GtJfzMdNAuWEuxkG9YjgTB4 GAPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pO2KGHHB; 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 di3si3884494ejc.490.2021.09.16.09.16.28; Thu, 16 Sep 2021 09:16:54 -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=pO2KGHHB; 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 S231868AbhIPQMz (ORCPT + 99 others); Thu, 16 Sep 2021 12:12:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:47658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231830AbhIPQHo (ORCPT ); Thu, 16 Sep 2021 12:07:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 249DF60232; Thu, 16 Sep 2021 16:06:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808383; bh=JFIwOmiBvrlHVlUc/agg+VHNpbDgXFBJyCKiIIAbcSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pO2KGHHBKr7JoLBImGzVKX03yMMgdNMiTp58m+12vP9gnVwhl1csQz09eqr8NH0uM /72QlQTWF+oLdM37m0BRL4dk9SWZWgCbEPHNvvVPfHj6BuEtQRztlinwp2+dwlqHS5 sLJHL/AfY4MVi3kqZzhU0WC+CJkh2POxOnegpKsk= 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 5.10 038/306] media: rc-loopback: return number of emitters rather than error Date: Thu, 16 Sep 2021 17:56:23 +0200 Message-Id: <20210916155755.248499619@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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 @@ -42,7 +42,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);