nvme: setup streams after initializing namespace head
authorKeith Busch <keith.busch@intel.com>
Thu, 14 Dec 2017 18:20:32 +0000 (11:20 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 15 Dec 2017 14:18:07 +0000 (15:18 +0100)
commit654b4a4acd8b52a4272114b95896e9a10d382cde
tree55df7d1539b6b58815e67c92a55f451b72bb1f87
parent249159c5f15812140fa216f9997d799ac0023a1f
nvme: setup streams after initializing namespace head

Fixes a NULL pointer dereference.

Reported-by: Arnav Dawn <a.dawn@samsung.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c