From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [PATCH RESEND] Input: twl4030_keypad - fix potential NULL dereference in twl4030_kp_probe() Date: Mon, 11 Apr 2011 23:50:40 -0700 Message-ID: <20110412065040.GB9566@core.coreip.homeip.net> References: <1302590871.17965.1.camel@phoenix> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-iw0-f174.google.com ([209.85.214.174]:44870 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754215Ab1DLGuq (ORCPT ); Tue, 12 Apr 2011 02:50:46 -0400 Content-Disposition: inline In-Reply-To: <1302590871.17965.1.camel@phoenix> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Axel Lin Cc: linux-kernel@vger.kernel.org, David Brownell , Felipe Balbi , linux-input@vger.kernel.org On Tue, Apr 12, 2011 at 02:47:51PM +0800, Axel Lin wrote: > We should first check whether platform data is NULL or not, before > dereferencing it to get the keymap. > > Signed-off-by: Axel Lin > Reviewed-by: Felipe Balbi Hmm, I thought I already applied it but I guess I managed to loose it. Let's try again... Thanks. -- Dmitry