nvme: Fix wrong ndev->queues memset
authorBin Meng <bmeng.cn@gmail.com>
Sat, 2 Sep 2017 15:15:35 +0000 (08:15 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 3 Sep 2017 19:30:32 +0000 (15:30 -0400)
commit37d46870b31724b71f593de3eda274e9ad8026d4
treede32c2bb5ab6349c60e4156d075e338ff5c20cb0
parent5eae466ea1ebd79c8033d4686242d5971a86bf74
nvme: Fix wrong ndev->queues memset

memset() was given a sizeof(NVME_Q_NUM * sizeof(struct nvme_queue *)
to clear, which is wrong.

Reported-by: Coverity (CID: 166729)
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/nvme/nvme.c