diff options
author | Hongbo Li <lihongbo22@huawei.com> | 2024-08-31 16:06:39 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-08-31 12:57:53 +0200 |
commit | 61bc4deff033181992408f973b48fca08757d3ff (patch) | |
tree | 8a34b2c113dcaa33fbf3ca2731e2473952e04daf /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2186fe21e57aada45f365a79cdb6d21140a539e2 (diff) |
ALSA: pcm: replace simple_strtoul to kstrtoul
As mentioned in [1], "...simple_strtol(), simple_strtoll(),
simple_strtoul(), and simple_strtoull() functions explicitly
ignore overflows, which may lead to unexpected results in callers."
Hence, the use of those functions is discouraged.
This patch replace the use of the simple_strtoul with the safer
alternatives kstrtoul.
[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#simple-strtol-simple-strtoll-simple-strtoul-simple-strtoull
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://patch.msgid.link/20240831080639.3985143-1-lihongbo22@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions