Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LwwFE-0002Ri-HT for mharc-grub-devel@gnu.org; Thu, 23 Apr 2009 06:33:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwwFC-0002QV-BI for grub-devel@gnu.org; Thu, 23 Apr 2009 06:33:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwwFB-0002Pj-0c for grub-devel@gnu.org; Thu, 23 Apr 2009 06:33:25 -0400 Received: from [199.232.76.173] (port=33475 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwwFA-0002Pd-L0 for grub-devel@gnu.org; Thu, 23 Apr 2009 06:33:24 -0400 Received: from [74.93.104.97] (port=36505 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwwFA-0003xx-3Z for grub-devel@gnu.org; Thu, 23 Apr 2009 06:33:24 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 7403335C00A for ; Thu, 23 Apr 2009 03:33:16 -0700 (PDT) Date: Thu, 23 Apr 2009 03:33:16 -0700 (PDT) Message-Id: <20090423.033316.91398666.davem@davemloft.net> To: grub-devel@gnu.org From: David Miller X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH]: grub: Close parent device in grub_fs_uuid_close(). X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 10:33:26 -0000 This is the second part of fixing FS_UUID on sparc64. Strangely, the FS_UUID close handler was empty. This leaks the parent disk and device object. Fix by calling grub_disk_close() on the appropriate object. 2009-04-23 David S. Miller * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close() on disk->data. --- disk/fs_uuid.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/disk/fs_uuid.c b/disk/fs_uuid.c index 125d29b..9d83bb8 100644 --- a/disk/fs_uuid.c +++ b/disk/fs_uuid.c @@ -97,6 +97,8 @@ grub_fs_uuid_open (const char *name, grub_disk_t disk) static void grub_fs_uuid_close (grub_disk_t disk __attribute((unused))) { + grub_disk_t parent = disk->data; + grub_disk_close (parent); } static grub_err_t -- 1.6.2.4