Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759462AbaJaVLF (ORCPT ); Fri, 31 Oct 2014 17:11:05 -0400 Received: from mail-ie0-f177.google.com ([209.85.223.177]:64486 "EHLO mail-ie0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752903AbaJaVLD (ORCPT ); Fri, 31 Oct 2014 17:11:03 -0400 MIME-Version: 1.0 In-Reply-To: <1414660895-29255-1-git-send-email-pramod.gurav@smartplayin.com> References: <1414660895-29255-1-git-send-email-pramod.gurav@smartplayin.com> Date: Fri, 31 Oct 2014 22:11:02 +0100 Message-ID: Subject: Re: [PATCH] mfd: db8500-prcmu: check return of devm_ioremap for error From: Linus Walleij To: Pramod Gurav Cc: "linux-kernel@vger.kernel.org" , Samuel Ortiz , Lee Jones Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 30, 2014 at 10:21 AM, Pramod Gurav wrote: > Error check around return value of devm_ioremap is missing. Add the same > to avoid NULL pointer dereference. > > Cc: Linus Walleij > Cc: Samuel Ortiz > Cc: Lee Jones > Signed-off-by: Pramod Gurav 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/