chiark / gitweb /
[PATCH] libsysfs: work around a klibc bug
[elogind.git] / udev_remove.c
index e1af3dbef61cf3a0d34a67af13e972eb31dd5c2a..172ec12690ac993f339444a1c711e8c8986213f3 100644 (file)
@@ -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;
                }