diff options
author | Chen Ni <[email protected]> | 2023-09-14 07:03:27 +0000 |
---|---|---|
committer | Ira Weiny <[email protected]> | 2023-09-27 10:33:47 -0700 |
commit | 6fd4ebfc4d61e3097b595ab2725d513e3bbd6739 (patch) | |
tree | b44459d619f6c6722bf61d98a5a739319bb830d7 /tools/perf/util/trace-event-scripting.c | |
parent | 75b3d5dc0846cfa54ea52d7d84215b761ecbf569 (diff) |
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 <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Signed-off-by: Ira Weiny <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions