Message ID | 20210608175928.089643488@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3994723jae; Tue, 8 Jun 2021 11:30:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywsBjd6J11irsEam0VXnm9pKEmfDcfpgzeT4plGgjyThqklRyGYB4W+zjM1y9kgHSBfBZV X-Received: by 2002:a50:9b06:: with SMTP id o6mr27188087edi.284.1623177044820; Tue, 08 Jun 2021 11:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623177044; cv=none; d=google.com; s=arc-20160816; b=K98HLluOUUXkB9PNooC8EnXgZpgIxbSUXic8X1xNX0ynqn5ntykdYh8ERyjTGF6G7R 6Hnrw55pjQ3o7RQ8sv1YtI5VTvis2bmYns20gBBfoYP+LOTHG1rWwvpiZwuDRrZEiVIU OqFT4FbpC87lFqCsG4dszFQ33OhqFWqMrmAmagua7eojUqmmwQJm+XEvhl2GI9o0Iuvc XyZ3Q6lcU7n16KVmwF0oPsrvaUNw2K2mqHVVt2PgDbuwLTkitQ7S6BkQSbXjaixr3SoG nawt/5rITvZim+U5C2gO+WY08frSzEwY/HEKg/UPGoJ9b5XMUqeEDahedKE0SpC/EtTx OaPw== 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=J7UZByMJSOAY6reM4//XCQ6dn1xKG/ywPwyWwiZHH0M=; b=xymAH8fz9aC+7w1bDWC24BVS8wirXUqzVQBLzytME58/SNBwE0et2vMjXwn8z0ysoN VzohrZR0HcNn/bzU+Y45pMRtHSSweWrBGL59bNrzIfoohQNSYDsEV5QN0RYkR237YMay f83LeFF9K2f80m6P66HdoQSj/w05Nwu6NiB7CLIYgN3S5TfVpAk/ZNBJK5N+eD85kmeS HFjt11i2hUae6Xk6PRLDhgflc+wz4K31U2g3XNXE4DWWPIDl1f9IfULM1cZ38e3AqF7G KDftONLoSpGcLSVR+xo2h/YoJLvwAND7HLnzQsatna0H9ZB/hDecQ6kdW+dlkTefgdyl nkdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W5Ibkbhr; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si416787ejm.271.2021.06.08.11.30.44; Tue, 08 Jun 2021 11:30:44 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=W5Ibkbhr; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S234192AbhFHScR (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Tue, 8 Jun 2021 14:32:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:56654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234191AbhFHSbk (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 8 Jun 2021 14:31:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4EA35613B9; Tue, 8 Jun 2021 18:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623176986; bh=lKpCVtXD3B8w7NgXNJYxyJ62U+u4UoNXBhi14EH6Lao=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W5IbkbhrpLp2syOJP3QXcn4CmZLiqVfoMJDlHOpMiWxXB3SXP7eP3jbDvuIHyTlwo 2IcZQum1hyD90U1ah2/kG+cljfkbWYWIenRXTw/GRHm9iSW9IB6N/4STI43vlNvCt8 FMHXGTxsmAgQxlsJ4Kx7luc0SeUKCaKiSEANm4dE= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Hulk Robot <hulkci@huawei.com>, Zhen Lei <thunder.leizhen@huawei.com>, Jiri Kosina <jkosina@suse.cz>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.9 08/29] HID: pidff: fix error return code in hid_pidff_init() Date: Tue, 8 Jun 2021 20:27:02 +0200 Message-Id: <20210608175928.089643488@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175927.821075974@linuxfoundation.org> References: <20210608175927.821075974@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: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/hid/usbhid/hid-pidff.c b/drivers/hid/usbhid/hid-pidff.c index 08174d341f4a..bc75f1efa0f4 100644 --- a/drivers/hid/usbhid/hid-pidff.c +++ b/drivers/hid/usbhid/hid-pidff.c @@ -1304,6 +1304,7 @@ int hid_pidff_init(struct hid_device *hid) if (pidff->pool[PID_DEVICE_MANAGED_POOL].value && pidff->pool[PID_DEVICE_MANAGED_POOL].value[0] == 0) { + error = -EPERM; hid_notice(hid, "device does not support device managed pool\n"); goto fail;