From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [patch] Input: tnetv107x-keypad - make irqs signed for error handling Date: Sun, 10 Nov 2013 23:31:42 -0800 Message-ID: <20131111073142.GB7645@core.coreip.homeip.net> References: <20131107075240.GK21844@elgon.mountain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pd0-f172.google.com ([209.85.192.172]:39185 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751419Ab3KKHbq (ORCPT ); Mon, 11 Nov 2013 02:31:46 -0500 Content-Disposition: inline In-Reply-To: <20131107075240.GK21844@elgon.mountain> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dan Carpenter Cc: Bill Pemberton , Mark Brown , Javier Martinez Canillas , Russell King , Sachin Kamat , linux-input@vger.kernel.org, kernel-janitors@vger.kernel.org On Thu, Nov 07, 2013 at 10:52:40AM +0300, Dan Carpenter wrote: > There is a bug in keypad_probe() where we do: > > kp->irq_press = platform_get_irq_byname(pdev, "press"); > kp->irq_release = platform_get_irq_byname(pdev, "release"); > if (kp->irq_press < 0 || kp->irq_release < 0) { > > The problem is that these irq variables are unsigned so the error > handling doesn't work. I've changed them to signed values. > > Signed-off-by: Dan Carpenter Applied, thank you. -- Dmitry