chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] libsysfs: work around a klibc bug
[elogind.git]
/
udev_remove.c
diff --git
a/udev_remove.c
b/udev_remove.c
index e1af3dbef61cf3a0d34a67af13e972eb31dd5c2a..172ec12690ac993f339444a1c711e8c8986213f3 100644
(file)
--- a/
udev_remove.c
+++ b/
udev_remove.c
@@
-89,7
+89,7
@@
static int delete_node(struct udevice *udev)
num = udev->partitions;
if (num > 0) {
info("removing all_partitions '%s[1-%i]'", filename, num);
- if (num >
PARTITIONS_COUNT
) {
+ if (num >
255
) {
info("garbage from udev database, skip all_partitions removal");
return -1;
}