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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btt_devs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
claim.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dax_devs.c nvdimm: rectify the illogical code within nd_dax_probe() 2024-12-17 13:24:32 +01:00
dimm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dimm_devs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
e820.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
label.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
label.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
namespace_devs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nd-core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
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 libnvdimm/of_pmem: Use devm_kstrdup instead of kstrdup and check its return value 2024-11-18 11:43:02 +01:00
pfn.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pfn_devs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
region.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
region_devs.c nd_btt: Make BTT lanes preemptible 2024-11-18 11:43:03 +01:00
security.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
virtio_pmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
virtio_pmem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00