projects
/
petitboot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbacb44
)
Don't reset dev->id in yaboot parser
author
Jeremy Kerr
<jk@ozlabs.org>
Fri, 4 Jan 2008 02:23:37 +0000
(13:23 +1100)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/devices/yaboot-parser.c
b/devices/yaboot-parser.c
index fc55047809b09ad6e8b8fc8fc533406fca363498..8d65ce27e1cc7bd6f29268785b0df31d6394b0fc 100644
(file)
--- 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)
;
}
}