]> git.baikalelectronics.ru Git - kernel.git/commit
block: Fix off-by-one errors in blk_status_to_errno() and print_req_error()
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 21 Jun 2017 17:55:46 +0000 (10:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2017 18:01:14 +0000 (12:01 -0600)
commita6e490a6d20f2462a9b8c53fa4b1b7610f0dc3a4
treedf1aefcbcb80242e1c892866dd3ad1c727d88cf5
parent7ba25c94093200298df949ba42156325f84a6c55
block: Fix off-by-one errors in blk_status_to_errno() and print_req_error()

This was detected by the smatch static analyzer.

Fixes: commit 090700af6174 ("block: introduce new block status code type")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c