Christoph Hellwig e5d66a1032 loop: don't allow deleting an unspecified loop device
Passing a negative index to loop_lookup while return any unbound device.
Doing that for a delete does not make much sense, so add check to
explicitly reject that case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210623145908.92973-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-06-30 15:34:13 -06:00
..
2021-06-30 12:21:16 -07:00
2021-06-24 18:49:01 -06:00
2021-04-18 09:36:56 +03:00
2021-06-12 12:13:55 -07:00
2021-06-11 11:53:03 -06:00
2021-06-29 10:53:48 -07:00
2021-06-16 09:03:52 -07:00
2021-06-28 14:04:24 -07:00
2021-04-26 12:11:52 -07:00
2021-06-30 11:15:39 -07:00
2021-06-29 11:21:35 -07:00
2021-05-01 10:14:08 -07:00
2021-06-29 13:39:41 -07:00
2021-06-30 11:15:39 -07:00
2021-06-30 12:21:16 -07:00
2021-06-30 12:12:56 -07:00
2021-06-30 11:15:39 -07:00
2021-06-30 15:34:04 -06:00
2021-06-30 12:12:56 -07:00
2021-06-29 11:21:35 -07:00
2021-06-30 12:21:16 -07:00
2021-06-29 11:21:35 -07:00
2021-05-05 12:53:16 -07:00
2021-05-04 11:13:33 -07:00
2021-05-05 13:24:11 -07:00
2021-06-01 16:44:09 +01:00
2021-06-30 12:12:56 -07:00
2021-06-30 12:12:56 -07:00
2021-06-28 12:14:19 -07:00
2021-06-29 12:07:18 -07:00
2021-05-05 13:31:39 -07:00
2021-06-16 08:53:58 -06:00
2021-06-29 11:21:35 -07:00