aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2023-07-12 10:33:43 -0700
committerJens Axboe <[email protected]>2023-07-12 11:37:41 -0600
commitf673b4f5bd13365c8bee2f38c9794b635c73a302 (patch)
tree66655494e124c67d96a515eb001295b688246ca5 /lib/test_fortify/write_overflow-strlcpy-src.c
parentdc8cbb65dc17b0daebca84375d35ce54ff730762 (diff)
block/mq-deadline: Fix a bug in deadline_from_pos()
A bug was introduced in deadline_from_pos() while implementing the suggestion to use round_down() in the following code: pos -= bdev_offset_from_zone_start(rq->q->disk->part0, pos); This patch makes deadline_from_pos() use round_down() such that 'pos' is rounded down. Reported-by: Shin'ichiro Kawasaki <[email protected]> Closes: https://lore.kernel.org/all/5zthzi3lppvcdp4nemum6qck4gpqbdhvgy4k3qwguhgzxc4quj@amulvgycq67h/ Cc: Christoph Hellwig <[email protected]> Cc: Damien Le Moal <[email protected]> Fixes: 0effb390c4ba ("block: mq-deadline: Handle requeued requests correctly") Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions