Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: fix rootwait= again

The previous rootwait fix added an -EINVAL return to a completely
bogus superflous branch, fix this.

Fixes: 1341c7d2ccf4 ("block: fix rootwait=")
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Fabio Estevam <festevam@gmail.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230609051737.328930-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
bb91a7d9 7da15fb0

+1 -1
+1 -1
block/early-lookup.c
··· 181 181 *p = '\0'; 182 182 *devt = blk_lookup_devt(s, part); 183 183 if (*devt) 184 - return -ENODEV; 184 + return 0; 185 185 186 186 /* try disk name without p<part number> */ 187 187 if (p < s + 2 || !isdigit(p[-2]) || p[-1] != 'p')