From: Jeremy Kerr Date: Fri, 4 Jan 2008 02:23:37 +0000 (+1100) Subject: Don't reset dev->id in yaboot parser X-Git-Tag: v1.0.0~972 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=84a9a8660a90551f2f934ac77ac0c9b2c2e8c079 Don't reset dev->id in yaboot parser - this may end up giving duplicate IDs for different partitions. It's fine to keep the device where we discovered the config file. Signed-off-by: Jeremy Kerr --- diff --git a/devices/yaboot-parser.c b/devices/yaboot-parser.c index fc55047..8d65ce2 100644 --- a/devices/yaboot-parser.c +++ b/devices/yaboot-parser.c @@ -203,7 +203,7 @@ static int yaboot_parse(const char *devicepath, const char *_mountpoint) sprintf(endp+1, "%d", partnr); mountpoint = mountpoint_for_device(new_dev); - dev->id = new_dev; + free(new_dev); } }