Skip to content
Commit 4157fe0b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

loop: don't call loop_lookup before adding a loop device



loop_add returns the right error if the slot wasn't available.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210623145908.92973-5-hch@lst.de
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d6da83d0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment