[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Re: Revision 2136 breaks two-disk configuarion
From: |
David Miller |
Subject: |
Re: [PATCH] Re: Revision 2136 breaks two-disk configuarion |
Date: |
Mon, 27 Apr 2009 18:45:33 -0700 (PDT) |
From: Pavel Roskin <address@hidden>
Date: Mon, 27 Apr 2009 21:37:52 -0400
> On Mon, 2009-04-27 at 18:26 -0400, Pavel Roskin wrote:
>
>> It's entirely possible that the problem is elsewhere. But I have no
>> experience debugging memory problems in GRUB, so it will take time
>> before I find out.
>
> Done! disk->partition should not be copied by reference. This patch
> fixes the broken magic problem. The issue with mixing device and disk
> functions could be addressed separately.
>
> ChangeLog:
> disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
> parent's partition, don't copy it by reference, as it gets freed
> on close.
Thanks for fixing this Pavel. I suspect this bug is why the close was
left as a NOP function all of this time.
Please commit this as it seems you haven't already :-)
I'll take a look at your other patch too.