Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753642Ab3DAGk5 (ORCPT ); Mon, 1 Apr 2013 02:40:57 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:54867 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751107Ab3DAGk4 (ORCPT ); Mon, 1 Apr 2013 02:40:56 -0400 Date: Sun, 31 Mar 2013 23:36:57 -0700 From: Anton Vorontsov To: Silviu-Mihai Popescu Cc: linux-kernel@vger.kernel.org, dwmw2@infradead.org Subject: Re: [PATCH] power: 88pm860x: fix invalid free of devm_* allocated data Message-ID: <20130401063656.GB13441@lizard> References: <1363501123-14350-1-git-send-email-silviupopescu1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1363501123-14350-1-git-send-email-silviupopescu1990@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 610 Lines: 17 On Sun, Mar 17, 2013 at 08:18:43AM +0200, Silviu-Mihai Popescu wrote: > The objects allocated by devm_* APIs are managed by devres and are freed > when the device is detached. There is no need to use kfree() explicitly. > > Signed-off-by: Silviu-Mihai Popescu > --- Jingoo Han sent a similar patch earlier... Anyway, thanks! Anton -- 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/