summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-06-29 16:30:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-09 09:37:54 +0200
commitcd62eeb31512441860d221440d23d82cf8b9a6ff (patch)
treee576bc720efa499564a730886b533175e450dc96 /samples
parentc64141c68f725068440fbc13eb63dbb283e99168 (diff)
nvme: fix a crash in nvme_mpath_add_disk
[ Upstream commit 72d447113bb751ded97b2e2c38f886e4a4139082 ] For private namespaces ns->head_disk is NULL, so add a NULL check before updating the BDI capabilities. Fixes: b2ce4d90690b ("nvme-multipath: set bdi capabilities once") Reported-by: Avinash M N <Avinash.M.N@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions