diff options
| author | Chen Ni <[email protected]> | 2023-09-14 07:03:27 +0000 |
|---|---|---|
| committer | Ira Weiny <[email protected]> | 2023-09-27 17:33:47 +0000 |
| commit | 6fd4ebfc4d61e3097b595ab2725d513e3bbd6739 (patch) | |
| tree | b44459d619f6c6722bf61d98a5a739319bb830d7 /scripts/gdb/vmlinux-gdb.py | |
| parent | dax: refactor deprecated strncpy (diff) | |
| download | kernel-6fd4ebfc4d61e3097b595ab2725d513e3bbd6739.tar.gz kernel-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 <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Signed-off-by: Ira Weiny <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions
