summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-01-15 15:19:10 -0700
committerJens Axboe <axboe@fb.com>2015-01-15 15:19:10 -0700
commit6222d1721dd7d533b43747642419a8ff78ad6f99 (patch)
tree11d3b7e05d7ab3c414b0bca6d5ec22a44fd6ce63 /drivers/block
parentf800c25b7a762d445ba1439a2428c8362157eba6 (diff)
downloadlinux-6222d1721dd7d533b43747642419a8ff78ad6f99.tar.bz2
NVMe: cq_vector should be signed
This was inadvertently dropped from an earlier commit, otherwise the check against cq_vector == -1 to prevent double free doesn't make any sense. Fixes: 2b25d981790b Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/nvme-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
index cb529e9a82dd..d826bf3e62c8 100644
--- a/drivers/block/nvme-core.c
+++ b/drivers/block/nvme-core.c
@@ -106,7 +106,7 @@ struct nvme_queue {
dma_addr_t cq_dma_addr;
u32 __iomem *q_db;
u16 q_depth;
- u16 cq_vector;
+ s16 cq_vector;
u16 sq_head;
u16 sq_tail;
u16 cq_head;