linux-stable/drivers/nvme/target
James Smart 8cbd96a628 nvme: fix sqhd reference when admin queue connect fails
Fix bug in sqhd patch.

It wasn't the sq that was at risk. In the case where the admin queue
connect command fails, the sq->size field is not set. Therefore, this
becomes a divide by zero error.

Add a quick check to bypass under this failure condition.

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-09-25 12:42:11 -06:00
..
admin-cmd.c nvmet: add support for reporting the host identifier 2017-08-30 15:05:18 +02:00
configfs.c nvmet: use NVME_NSID_ALL 2017-08-28 21:38:19 +02:00
core.c nvme: fix sqhd reference when admin queue connect fails 2017-09-25 12:42:11 -06:00
discovery.c nvme: use a single NVME_AQ_DEPTH and relax it to 32 2017-06-28 08:14:13 -06:00
fabrics-cmd.c nvmet: implement valid sqhd values in completions 2017-09-25 08:56:05 -06:00
fc.c nvmet-fc: fix failing max io queue connections 2017-09-25 08:56:05 -06:00
fcloop.c nvmet-fcloop: remove use of FC-specific error codes 2017-09-25 08:56:05 -06:00
io-cmd.c block: replace bi_bdev with a gendisk pointer and partitions index 2017-08-23 12:49:55 -06:00
Kconfig nvme-fabrics: Add FC LLDD loopback driver to test FC-NVME 2016-12-06 14:51:48 +01:00
loop.c nvme: Add admin_tagset pointer to nvme_ctrl 2017-08-28 21:38:24 +02:00
Makefile nvme-fabrics: Add FC LLDD loopback driver to test FC-NVME 2016-12-06 14:51:48 +01:00
nvmet.h nvmet: implement valid sqhd values in completions 2017-09-25 08:56:05 -06:00
rdma.c nvmet-rdma: remove redundant empty device add callout 2017-08-18 10:46:20 -04:00