]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "nbd: fix possible overflow on 'first_minor' in nbd_dev_add()"
authorJens Axboe <axboe@kernel.dk>
Sat, 2 Apr 2022 17:40:23 +0000 (11:40 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 2 Apr 2022 17:40:23 +0000 (11:40 -0600)
commit181f3e2dd788082703b8098295269980f7a99a3b
treec1ff0a42197d43390cffb77c50018954ff9135e9
parent44d15804850b37ceb4cf7a22facb40dd67fd5dcd
Revert "nbd: fix possible overflow on 'first_minor' in nbd_dev_add()"

This reverts commit 8e56dcbbc31abe045cd7804ebf9fc363e64fad62.

Both Gabriel and Borislav report that this commit casues a regression
with nbd:

sysfs: cannot create duplicate filename '/dev/block/43:0'

Revert it before 5.18-rc1 and we'll investigage this separately in
due time.

Link: https://lore.kernel.org/all/YkiJTnFOt9bTv6A2@zn.tnic/
Reported-by: Gabriel L. Somlo <somlo@cmu.edu>
Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c