diff options
author | 2023-09-14 07:03:27 +0000 | |
---|---|---|
committer | 2023-09-27 10:33:47 -0700 | |
commit | 6fd4ebfc4d61e3097b595ab2725d513e3bbd6739 (patch) | |
tree | b44459d619f6c6722bf61d98a5a739319bb830d7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dax: refactor deprecated strncpy (diff) | |
download | wireguard-linux-6fd4ebfc4d61e3097b595ab2725d513e3bbd6739.tar.xz wireguard-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions