block: don't return -EINVAL for not found names in devt_from_devname

When we didn't find a device and didn't guess it might be a partition,
it might still show up later, so don't disable rootwait for it by
returning -EINVAL.

Fixes: 079caa35f786 ("init: clear root_wait on all invalid root= strings")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230622150644.600327-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by Christoph Hellwig and committed by Jens Axboe 648fa60f 8270cb10

+2 -2
+2 -2
block/early-lookup.c
··· 175 175 while (p > s && isdigit(p[-1])) 176 176 p--; 177 177 if (p == s || !*p || *p == '0') 178 - return -EINVAL; 178 + return -ENODEV; 179 179 180 180 /* try disk name without <part number> */ 181 181 part = simple_strtoul(p, NULL, 10); ··· 186 186 187 187 /* try disk name without p<part number> */ 188 188 if (p < s + 2 || !isdigit(p[-2]) || p[-1] != 'p') 189 - return -EINVAL; 189 + return -ENODEV; 190 190 p[-1] = '\0'; 191 191 *devt = blk_lookup_devt(s, part); 192 192 if (*devt)