linux/drivers/block/zloop.c
Christoph Hellwig 869c979f36 zloop: check for spurious options passed to remove
[ Upstream commit 3c4617117a ]

Zloop uses a command option parser for all control commands,
but most options are only valid for adding a new device.  Check
for incorrectly specified options in the remove handler.

Fixes: eb0570c7df ("block: new zoned loop block device driver")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-12 07:09:16 -04:00

1409 lines
32 KiB