diff options
| author | Gen Zhang <[email protected]> | 2019-05-29 09:53:05 +0800 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2019-05-29 16:35:35 +0100 |
| commit | a54988113985ca22e414e132054f234fc8a92604 (patch) | |
| tree | 2774606953d3f7b4dc2ad99ebfa936cbd61521dc /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 99a12c766e20f76eb47819fd56ff60b2010048c6 (diff) | |
wcd9335: fix a incorrect use of kstrndup()
In wcd9335_codec_enable_dec(), 'widget_name' is allocated by kstrndup().
However, according to doc: "Note: Use kmemdup_nul() instead if the size
is known exactly." So we should use kmemdup_nul() here instead of
kstrndup().
Signed-off-by: Gen Zhang <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions