]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sed-opal: ignore locking ranges array when not enabling SUM.
authorOndrej Kozina <okozina@redhat.com>
Fri, 30 Jan 2026 16:33:52 +0000 (17:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Feb 2026 14:04:43 +0000 (07:04 -0700)
commit06564bae93d024e346c49304dfb4e2aaa68cf620
treedf904a8d3a3a5907977a34186c676c4b36d21c98
parent229f4125746a520b42bde1005c22fe27117f57f5
sed-opal: ignore locking ranges array when not enabling SUM.

The locking ranges count and the array items are always ignored unless
Single User Mode (SUM) is requested in the activate method.

It is useless to enforce limits of unused array in the non-SUM case.

Signed-off-by: Ondrej Kozina <okozina@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/sed-opal.c