Skip to content
Commit 0d0b7d42 authored by Jose Alonso's avatar Jose Alonso Committed by Jens Axboe
Browse files

blk-mq: for_each_* macro correctness



I observed that there are for_each macros that do an extra memory access
beyond the defined area.
Normally this does not cause problems.
But, this can cause exceptions. For example: if the area is allocated at
the end of a page and the next page is not accessible.

For correctness, I suggest changing the arguments of the 'for loop' like
others 'for_each' do in the kernel.

Signed-off-by: default avatarJose Alonso <joalonsof@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 17a05cca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment