commit | a1e79188628580465ac6d7a93a313336ee3364f1 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Jun 20 13:45:05 2018 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Jun 20 11:26:04 2018 -0600 |
tree | c77e8c6c014a97674114c779134b82bdba497ece | |
parent | 9c24c10a2c1e1bb478b6bb70612d9e885aee044f [diff] |
blk-mq-debugfs: Off by one in blk_mq_rq_state_name() If rq_state == ARRAY_SIZE() then we read one element beyond the end of the blk_mq_rq_state_name_array[] array. Fixes: ec6dcf63c55c ("blk-mq-debugfs: Show more request state information") Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>