Skip to content
Commit 4ee86bab authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Jens Axboe
Browse files

blk-mq: add bounds check on tag-to-rq conversion



We need to check for a valid index before accessing the array
element to avoid accessing invalid memory regions.

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJeff Moyer <jmoyer@redhat.com>

Modified by Jens to drop the unlikely(), and make the fall through
path be having a valid tag.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 2b885517
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment