kernel_samsung_a53x/drivers/nvdimm
Yi Yang d625142214 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>
2024-12-17 13:24:32 +01:00
..
badrange.c
blk.c
btt.c
btt.h
btt_devs.c
bus.c
claim.c
core.c
dax_devs.c nvdimm: rectify the illogical code within nd_dax_probe() 2024-12-17 13:24:32 +01:00
dimm.c
dimm_devs.c
e820.c
Kconfig
label.c
label.h
Makefile
namespace_devs.c
nd-core.h
nd.h nvdimm: rectify the illogical code within nd_dax_probe() 2024-12-17 13:24:32 +01:00
nd_virtio.c Revert "virtio_pmem: Check device status before requesting flush" 2024-11-24 00:22:58 +01:00
of_pmem.c
pfn.h
pfn_devs.c
pmem.c
pmem.h
region.c
region_devs.c
security.c
virtio_pmem.c
virtio_pmem.h