Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965003AbWJJGAT (ORCPT ); Tue, 10 Oct 2006 02:00:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965004AbWJJGAS (ORCPT ); Tue, 10 Oct 2006 02:00:18 -0400 Received: from NS6.Sony.CO.JP ([137.153.0.32]:64936 "EHLO ns6.sony.co.jp") by vger.kernel.org with ESMTP id S965003AbWJJGAR convert rfc822-to-8bit (ORCPT ); Tue, 10 Oct 2006 02:00:17 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Subject: RE: [Cbe-oss-dev] [PATCH 09/14] spufs: add support for read/write oncntl Date: Tue, 10 Oct 2006 15:00:14 +0900 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Cbe-oss-dev] [PATCH 09/14] spufs: add support for read/write oncntl Thread-Index: Acbn017kJVRp07XQSdCva5gHDa6iKQEVg9Jg From: "Noguchi, Masato" To: "Arnd Bergmann" Cc: "Paul Mackerras" , "Arnd Bergmann" , , , X-OriginalArrivalTime: 10 Oct 2006 06:00:14.0453 (UTC) FILETIME=[5A9E8A50:01C6EC31] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1032 Lines: 30 After applying these patches, it seems the kernel leaks memory. No doubt you forget to call simple_attr_close on "[PATCH 09/14] spufs: add support for read/write oncntl". Signed-off-by: Masato Noguchi --- Index: linux-2.6.18-arnd-20061004/arch/powerpc/platforms/cell/spufs/file.c =================================================================== --- linux-2.6.18-arnd-20061004.orig/arch/powerpc/platforms/cell/spufs/file.c +++ linux-2.6.18-arnd-20061004/arch/powerpc/platforms/cell/spufs/file.c @@ -246,6 +246,7 @@ static int spufs_cntl_open(struct inode static struct file_operations spufs_cntl_fops = { .open = spufs_cntl_open, + .close = simple_attr_close, .read = simple_attr_read, .write = simple_attr_write, .mmap = spufs_cntl_mmap, - 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/