Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756141Ab3EQNp5 (ORCPT ); Fri, 17 May 2013 09:45:57 -0400 Received: from mail-ia0-f177.google.com ([209.85.210.177]:61032 "EHLO mail-ia0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756037Ab3EQNpz (ORCPT ); Fri, 17 May 2013 09:45:55 -0400 MIME-Version: 1.0 In-Reply-To: <1368696660.8439.1.camel@phoenix> References: <1368696660.8439.1.camel@phoenix> Date: Fri, 17 May 2013 15:45:55 +0200 Message-ID: Subject: Re: [PATCH] power_supply: pm2301_charger: Fix NULL pointer dereference From: Linus Walleij To: Axel Lin Cc: Anton Vorontsov , Rupesh Kumar , Michel JAOUEN , Loic Pallardy , David Woodhouse , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 604 Lines: 16 On Thu, May 16, 2013 at 11:31 AM, Axel Lin wrote: > Add checking pl_data in probe, this prevent possible NULL pointer dereference. > Also fix NULL pointer deference in dev_err when allocate memory for pm2 fails. > > Signed-off-by: Axel Lin Acked-by: Linus Walleij Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/