From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Subject: Re: [PATCH 1/1] input: usbhid: fix improper check Date: Mon, 05 Dec 2016 10:07:43 +0100 Message-ID: <1480928863.2206.1.camel@suse.com> References: <1480828209-4131-1-git-send-email-bianpan201603@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1480828209-4131-1-git-send-email-bianpan201603@163.com> Sender: linux-kernel-owner@vger.kernel.org To: Pan Bian Cc: Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-usb@vger.kernel.org, Pan Bian , linux-kernel@vger.kernel.org List-Id: linux-input@vger.kernel.org On Sun, 2016-12-04 at 13:10 +0800, Pan Bian wrote: > From: Pan Bian > > Function hid_post_reset() returns 0 on success, or 1 on failures. It seems like hid_post_reset() is buggy in not returning a proper error code in the failure case. So your diagnosis is right, but the fix is at the wrong place. Regards Oliver