diff options
| author | Martijn Coenen <[email protected]> | 2020-08-25 07:18:29 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-08-26 15:30:31 +0000 |
| commit | 79e5dc59e2974a48764269fa9ff544ae8ffe3338 (patch) | |
| tree | bbf59ef6b7b05d37c3b7fc25c14e6a8715358882 /net/switchdev/switchdev.c | |
| parent | nbd: restore default timeout when setting it to zero (diff) | |
| download | kernel-79e5dc59e2974a48764269fa9ff544ae8ffe3338.tar.gz kernel-79e5dc59e2974a48764269fa9ff544ae8ffe3338.zip | |
loop: Set correct device size when using LOOP_CONFIGURE
The device size calculation was done before processing the loop
configuration, which meant that the we set the size on the underlying
block device incorrectly in case lo_offset/lo_sizelimit were set in the
configuration. Delay computing the size until we've setup the device
parameters correctly.
Fixes: 3448914e8cc5("loop: Add LOOP_CONFIGURE ioctl")
Reported-by: Lennart Poettering <[email protected]>
Tested-by: Yang Xu <[email protected]>
Signed-off-by: Martijn Coenen <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
