Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754644AbbLJR0t (ORCPT ); Thu, 10 Dec 2015 12:26:49 -0500 Received: from mail-oi0-f43.google.com ([209.85.218.43]:34545 "EHLO mail-oi0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753571AbbLJR0o (ORCPT ); Thu, 10 Dec 2015 12:26:44 -0500 MIME-Version: 1.0 In-Reply-To: <1448979542-1202-1-git-send-email-ludovic.desroches@atmel.com> References: <1448979542-1202-1-git-send-email-ludovic.desroches@atmel.com> Date: Thu, 10 Dec 2015 18:26:43 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: at91-pio4: fix memleak after using dt map From: Linus Walleij To: Ludovic Desroches Cc: "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Nicolas Ferre , Yingjoe Chen Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 665 Lines: 19 On Tue, Dec 1, 2015 at 3:19 PM, Ludovic Desroches wrote: > configs is allocated by pinconf_generic_parse_dt_config(), > pinctrl_utils_add_map_configs() duplicates configs so it can and has to > be freed to prevent memory leaks. > > Signed-off-by: Ludovic Desroches > Reported-by: Yingjoe Chen Patch applied. 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/