diff options
author | James Smart <jsmart2021@gmail.com> | 2019-03-13 18:55:01 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-05 22:34:18 +0200 |
commit | 32b73dc525a1b25d825d84869a03abbce5a84fa2 (patch) | |
tree | 8c9cd81883324af75fd590786f8b3d080a0ba249 /.mailmap | |
parent | fae38f280334107cd396ea456e3bf90e25b0f3d8 (diff) | |
download | talos-obmc-linux-32b73dc525a1b25d825d84869a03abbce5a84fa2.tar.gz talos-obmc-linux-32b73dc525a1b25d825d84869a03abbce5a84fa2.zip |
nvme-fc: fix numa_node when dev is null
[ Upstream commit 06f3d71ea071b70e62bcc146cd9ff7ed1f9d4e43 ]
A recent change added a numa_node field to the nvme controller
and has the transport assign the node using dev_to_node().
However, fcloop registers with a NULL device struct, so the
dev_to_node() call oops.
Revise the assignment to assign no node when device struct is null.
Fixes: 103e515efa89b ("nvme: add a numa_node field to struct nvme_ctrl")
Reported-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
[hch: small coding style fixup]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions