]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: use an integer value to Linux errno values
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Oct 2015 19:23:39 +0000 (21:23 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 15 Oct 2015 15:49:20 +0000 (09:49 -0600)
commitcc0f1f6486200f5f550dea865b8449a8c226ef8a
tree42fa640a9ceedc7ce0d8088e3ae97de72aef1a18
parent208c715d2d17ef1dd26bcdf41245deeef8a4fc2f
nvme: use an integer value to Linux errno values

Use a separate integer variable to hold the signed Linux errno
values we pass back to the block layer.  Note that for pass through
commands those might still be NVMe values, but those fit into the
int as well.

Fixes: fb50cad0be59: ("blk-mq: fix racy updates of rq->errors")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c