[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH]: grub: Close parent device in grub_fs_uuid_close().

From: David Miller
Subject: [PATCH]: grub: Close parent device in grub_fs_uuid_close().
Date: Thu, 23 Apr 2009 03:33:16 -0700 (PDT)

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  <address@hidden>

        * 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]