]> git.ozlabs.org Git - petitboot/commitdiff
Don't reset dev->id in yaboot parser
authorJeremy Kerr <jk@ozlabs.org>
Fri, 4 Jan 2008 02:23:37 +0000 (13:23 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 4 Jan 2008 02:24:50 +0000 (13:24 +1100)
- 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 <jk@ozlabs.org>
devices/yaboot-parser.c

index fc55047809b09ad6e8b8fc8fc533406fca363498..8d65ce27e1cc7bd6f29268785b0df31d6394b0fc 100644 (file)
@@ -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);
                }
        }