]> 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)
commit204a2ff80e2a72e77b26e760376eb209239258a5
treedf1aefcbcb80242e1c892866dd3ad1c727d88cf5
parentd68b219a84c71d0dc084f209ec9495eeee96a7f0
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 dca3287b2d12 ("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