kernel_samsung_a53x/drivers/nvdimm
Chen Ni b892837f7b libnvdimm/of_pmem: Use devm_kstrdup instead of kstrdup and check its return value
[ Upstream commit 6fd4ebfc4d61e3097b595ab2725d513e3bbd6739 ]

Use devm_kstrdup() instead of kstrdup() and check its return value to
avoid memory leak.

Fixes: 49bddc73d15c ("libnvdimm/of_pmem: Provide a unique name for bus provider")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:43:02 +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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03: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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nd_virtio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03: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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03: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