Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5929199ybi; Wed, 31 Jul 2019 05:38:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhVXWEOVjAJMU2cLD5Z67rDI3b1P9JD9k3HCyxpVij16kPvQv56w9tuLO2pzk8Yc2eeFZ0 X-Received: by 2002:a17:90a:1c1:: with SMTP id 1mr2846229pjd.72.1564576731870; Wed, 31 Jul 2019 05:38:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564576731; cv=none; d=google.com; s=arc-20160816; b=IFW703akLa4cBr5mfYkkLJFkXsnpKDhKG5ZWwo2q8rh/7VpL3pRfiAI+JBgDj7AL7c tZb4OoNkRD5WiCADLJT1dgOWgZifa1FRIDD6gdUacXl6vjUJyJF/ARD/n7sqkKbiwh2Z MYOWFFVo5yIRmtwyvjeWGibUt5C0fYt8Wu5UI+XhMbmXAcjUOXu8v5H/OrvZNPDHjhMg XOEBDWdXCPJ8i0id7zDlQQdX3qnOZBJERqHcFRl1+8T53vSiS6ZSRuZQtWNu00D0m+RE nq7Fp6PVWLQe1sy2vogqEEmx1W1DSV90qfOC3hm6PzxQE72PatUyWPUwsTQW7RC9S72g 3tWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=tx9BmLSFIjccJB9dEO66OPOvA1TqsC+31d97LWOTSNM=; b=S4KVKIqgirXA8EU42XcVM0djEw6UXnCOEQU8WkoKnQkOq7UOZQXL3hFWIhcDC2sx1h Hwhr87Uy+rTMZzoZYzvQiF/iknCfXlLbcR1B6n7PEyrrLQ4lOnQVJbk9YU/iRxM3F0Pz yJl8a4VN3EA6kupgwgNkNLgCDX3NOooXkNoQrnU28rx7whJmR0S7Eq2vcnMiGbooOwgo EYDtKVc8Pvjr3bdcGJu4po16Ms5Z7PlZsEL3Hk5/+e9LcGsKywBTl2wwSHj2j6rkSQ3d 38n2Ub8LN0xWQ58eWhirJWln8INlgOgKUh0VpDWGsWbL9U1Eqd+PcapoYJOn/NP2/PoJ yr1w== ARC-Authentication-Results: i=1; mx.google.com; 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 f20si35126031pfn.166.2019.07.31.05.38.33; Wed, 31 Jul 2019 05:38:51 -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; 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 S2387425AbfGaLGc (ORCPT + 99 others); Wed, 31 Jul 2019 07:06:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:42568 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726923AbfGaLGc (ORCPT ); Wed, 31 Jul 2019 07:06:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 24455AF78; Wed, 31 Jul 2019 11:06:31 +0000 (UTC) Date: Wed, 31 Jul 2019 13:06:29 +0200 From: Petr Vorel To: YueHaibing Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, hdegoede@redhat.com, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH] HID: logitech-dj: Fix check of logi_dj_recv_query_paired_devices() Message-ID: <20190731110629.GB5092@dell5510> Reply-To: Petr Vorel References: <20190725145719.8344-1-yuehaibing@huawei.com> <20190731105927.GA5092@dell5510> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190731105927.GA5092@dell5510> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > In delayedwork_callback(), logi_dj_recv_query_paired_devices > > may return positive value while success now, so check it > > correctly. > > Fixes: dbcbabf7da92 ("HID: logitech-dj: fix return value of logi_dj_recv_query_hidpp_devices") > > Signed-off-by: YueHaibing > Reviewed-by: Petr Vorel OK, not only it didn't fix problems with logitech mouse (see below), but removing mouses USB dongle effectively crashes kernel, so this one probably shouldn't be applied :). [ 330.721629] logitech-djreceiver: probe of 0003:046D:C52F.0013 failed with error 7 [ 331.462335] hid 0003:046D:C52F.0013: delayedwork_callback: logi_dj_recv_query_paired_devices error: 7 Kind regards, Petr