core/cgroup: block_get_originating() doesn't return > 0

Follow-up for 612fc70fc0
This commit is contained in:
Mike Yuan
2025-05-05 18:39:05 +02:00
parent ab46feb3e2
commit ab2f5407a0
+2 -1
View File
@@ -1019,7 +1019,8 @@ static int lookup_block_device(const char *p, dev_t *ret) {
}
/* If this is a LUKS/DM device, recursively try to get the originating block device */
while (block_get_originating(*ret, ret) > 0);
while (block_get_originating(*ret, ret) >= 0)
;
/* If this is a partition, try to get the originating block device */
(void) block_get_whole_disk(*ret, ret);