Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757329Ab3DAGrM (ORCPT ); Mon, 1 Apr 2013 02:47:12 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:64281 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756615Ab3DAGrL (ORCPT ); Mon, 1 Apr 2013 02:47:11 -0400 Date: Sun, 31 Mar 2013 23:43:13 -0700 From: Anton Vorontsov To: Andrei Epure Cc: dwmw2@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 21/21] power: fix invalid free of devm_ allocated data Message-ID: <20130401064312.GE13441@lizard> References: <1364431919-26388-1-git-send-email-epure.andrei@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1364431919-26388-1-git-send-email-epure.andrei@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: 629 Lines: 16 On Thu, Mar 28, 2013 at 02:51:59AM +0200, Andrei Epure wrote: > The objects allocated by devm_* APIs are managed by devres and are freed when > the device is detached. Hence there is no need to use kfree() explicitly. > Patch found using coccinelle. > > Signed-off-by: Andrei Epure > --- Jingoo Han sent a similar change ealier... but thanks anyway! 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/