diff options
author | Chen Ni <nichen@iscas.ac.cn> | 2023-09-14 07:03:27 +0000 |
---|---|---|
committer | Ira Weiny <ira.weiny@intel.com> | 2023-09-27 10:33:47 -0700 |
commit | 6fd4ebfc4d61e3097b595ab2725d513e3bbd6739 (patch) | |
tree | b44459d619f6c6722bf61d98a5a739319bb830d7 /security/selinux/Kconfig | |
parent | 75b3d5dc0846cfa54ea52d7d84215b761ecbf569 (diff) | |
download | linux-6fd4ebfc4d61e3097b595ab2725d513e3bbd6739.tar.gz linux-6fd4ebfc4d61e3097b595ab2725d513e3bbd6739.tar.bz2 linux-6fd4ebfc4d61e3097b595ab2725d513e3bbd6739.zip |
libnvdimm/of_pmem: Use devm_kstrdup instead of kstrdup and check its return value
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>
Diffstat (limited to 'security/selinux/Kconfig')
0 files changed, 0 insertions, 0 deletions