summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2026-07-10 18:32:49 +0200
committerMikulas Patocka <mpatocka@redhat.com>2026-07-10 18:39:17 +0200
commit422f1d4f141eaa3a6e4199ceec86cc6b9bf26570 (patch)
tree76bd7c98c3d7925da3c095e4f0dc91914d06aba3 /scripts
parent8ec4d9c5a5cf4b61fc087f871465b1f79b393325 (diff)
dm-bufio: fix wrong count calculation in dm_bufio_issue_discard
block_to_sector converts a block number to a sector number and adds c->start to the result. It is inappropriate to use this function for converting the number of blocks to a number to sectors because c->start would be incorrectly added to the result. Luckily, the only target that uses dm_bufio_issue_discard is dm-ebs, which sets c->start to 0, so this bug is latent. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Assisted-by: Claude:claude-opus-4-6 Fixes: 6fbeb0048e6b ("dm bufio: implement discard") Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions