Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755439Ab0BJQGh (ORCPT ); Wed, 10 Feb 2010 11:06:37 -0500 Received: from smtp.nokia.com ([192.100.122.233]:47754 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754939Ab0BJQGg (ORCPT ); Wed, 10 Feb 2010 11:06:36 -0500 Subject: Re: [PATCH v2] class: Free the class private data in class_release From: Artem Bityutskiy Reply-To: Artem.Bityutskiy@nokia.com To: ext Laurent Pinchart Cc: "gregkh@suse.de" , "kay.sievers@vrfy.org" , "linux-kernel@vger.kernel.org" In-Reply-To: <1265805169-31315-1-git-send-email-laurent.pinchart@ideasonboard.com> References: <1265801743-26079-1-git-send-email-laurent.pinchart@ideasonboard.com> <1265805169-31315-1-git-send-email-laurent.pinchart@ideasonboard.com> Content-Type: text/plain; charset="UTF-8" Organization: Nokia Date: Wed, 10 Feb 2010 18:05:45 +0200 Message-ID: <1265817945.2006.270.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 (2.28.2-1.fc12) Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 10 Feb 2010 16:06:24.0570 (UTC) FILETIME=[FE7339A0:01CAAA6A] X-Nokia-AV: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 703 Lines: 20 On Wed, 2010-02-10 at 13:32 +0100, ext Laurent Pinchart wrote: > Fix a memory leak by freeing the memory allocated in __class_register > for the class private data. > > Signed-off-by: Laurent Pinchart Acked-by: Artem Bityutskiy Thanks for finding this. For reference, this was spotted with help of the great kmemleak tool. -- Best Regards, Artem Bityutskiy (Артём Битюцкий) -- 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/