aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorHannes Reinecke <[email protected]>2016-03-15 12:03:28 -0700
committerJens Axboe <[email protected]>2016-03-15 12:03:28 -0700
commit4ee86babe09f0682a60b1c56be99819bbe4ba62c (patch)
tree4b94ce88f3586a56448416947a659933b46bb97f /lib/test-string_helpers.c
parent2b885517110cbe8724fef30363778b6284d0a428 (diff)
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: Christoph Hellwig <[email protected]> Reviewed-by: Jeff Moyer <[email protected]> Modified by Jens to drop the unlikely(), and make the fall through path be having a valid tag. Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions