Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173Ab2FLLDE (ORCPT ); Tue, 12 Jun 2012 07:03:04 -0400 Received: from mail-qa0-f49.google.com ([209.85.216.49]:65471 "EHLO mail-qa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750987Ab2FLLDD (ORCPT ); Tue, 12 Jun 2012 07:03:03 -0400 MIME-Version: 1.0 In-Reply-To: <1339087766-14739-1-git-send-email-devendra.aaru@gmail.com> References: <1339087766-14739-1-git-send-email-devendra.aaru@gmail.com> Date: Tue, 12 Jun 2012 13:03:02 +0200 Message-ID: Subject: Re: [PATCH V2 2/2] pinctrl: pinctrl-imx: free if of_get_parent fails to get the parent node From: Linus Walleij To: Devendra Naga Cc: Dong Aisheng , 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: 584 Lines: 15 On Thu, Jun 7, 2012 at 6:49 PM, Devendra Naga wrote: > of_get_parent can return null if no parent node found, so the allocated new_map > should be freed. > > Signed-off-by: Devendra Naga > Acked-by: Dong Aisheng Applied this v2 version, thanks! 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/