Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752830AbbK2Vfm (ORCPT ); Sun, 29 Nov 2015 16:35:42 -0500 Received: from mail-oi0-f43.google.com ([209.85.218.43]:35212 "EHLO mail-oi0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752450AbbK2Vfk (ORCPT ); Sun, 29 Nov 2015 16:35:40 -0500 MIME-Version: 1.0 In-Reply-To: <1447799622-3340-1-git-send-email-hongzhou.yang@mediatek.com> References: <1447799622-3340-1-git-send-email-hongzhou.yang@mediatek.com> Date: Sun, 29 Nov 2015 22:35:39 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: mediatek: fix a memleak when do dt maps. From: Linus Walleij To: Hongzhou Yang Cc: Matthias Brugger , Yingjoe Chen , Axel Lin , Maoguang Meng , Colin Ian King , "linux-gpio@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , linux-mediatek@lists.infradead.org, "linux-kernel@vger.kernel.org" , srv_heupstream@mediatek.com, Sascha Hauer , biao.huang@mediatek.com 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: 778 Lines: 22 On Tue, Nov 17, 2015 at 11:33 PM, Hongzhou Yang wrote: > configs will kmemdup to dup_configs in pictrl util function. > So configs need to be freed. > > Signed-off-by: Hongzhou Yang > Reviewed-by: Daniel Kurtz > Reviewed-by: Matthias Brugger > --- > Fix a memleak issue. > According to Yingjoe's comment, add return checek for pinconf_generic_parse_dt_config. Patch applied with Yingjoe's review tag. 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/