From 84a9a8660a90551f2f934ac77ac0c9b2c2e8c079 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 4 Jan 2008 13:23:37 +1100 Subject: [PATCH] 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 --- devices/yaboot-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.2