]> 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:04:36 +0000 (09:04 -0600)
commitfa7b2f7ea75ffa4c052197f0892faa1981b9ba8a
treecf85d3d53b4a69fb2758c48594d4b54bf7ad7223
parent6d6e5c5f229455fb3484dd1f4a27972ef88221cd
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: e1e03571503b: ("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/nvme/host/pci.c