summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorYi Yang <yiyang13@huawei.com>2024-11-08 08:55:26 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-14 20:04:02 +0100
commit1c67333b8febeb46b8e9d790d1592a21f78c5c63 (patch)
tree0810d8639cd4ad5b53deb87069cfafbc9ed20474 /drivers/pci/controller/pci-host-common.c
parenta5289e7085ff5ae2ae21ec7301d03b0ed68dddbe (diff)
nvdimm: rectify the illogical code within nd_dax_probe()
[ Upstream commit b61352101470f8b68c98af674e187cfaa7c43504 ] When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless, it is inadvisable to perform pointer arithmetic or address-taking on a NULL pointer. Introduce the nd_dax_devinit() function to enhance the code's logic and improve its readability. Signed-off-by: Yi Yang <yiyang13@huawei.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://patch.msgid.link/20241108085526.527957-1-yiyang13@huawei.com Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions