summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYi Yang <yiyang13@huawei.com>2023-09-04 11:52:20 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-09-18 11:14:42 +0200
commitd81ffb87aaa75f842cd7aa57091810353755b3e6 (patch)
tree1170f1004e81c4766035981a4f404da5aaf693a1 /tools/perf/scripts/python
parent30e945861f3b46c4a5b25b861da40510a64cf9a4 (diff)
downloadkernel-d81ffb87aaa75f842cd7aa57091810353755b3e6.tar.gz
tty: vcc: Add check for kstrdup() in vcc_probe()
Add check for the return value of kstrdup() and return the error, if it fails in order to avoid NULL pointer dereference. Signed-off-by: Yi Yang <yiyang13@huawei.com> Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20230904035220.48164-1-yiyang13@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions