linux-stable/drivers/nvme
Pankaj Raghav b8c2f0392d nvme initialize core quirks before calling nvme_init_subsystem
[ Upstream commit 6f2d71524b ]

A device might have a core quirk for NVME_QUIRK_IGNORE_DEV_SUBNQN
(such as Samsung X5) but it would still give a:

    "missing or invalid SUBNQN field"

warning as core quirks are filled after calling nvme_init_subnqn.  Fill
ctrl->quirks from struct core_quirks before calling nvme_init_subsystem
to fix this.

Tested on a Samsung X5.

Fixes: ab9e00cc72 ("nvme: track subsystems")
Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-14 11:37:27 +01:00
..
host nvme initialize core quirks before calling nvme_init_subsystem 2022-12-14 11:37:27 +01:00
target nvmet: fix memory leak in nvmet_subsys_attr_model_store_locked 2022-12-02 17:41:02 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00