aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2023-12-08 18:23:53 +0800
committerAlexei Starovoitov <[email protected]>2023-12-09 18:12:34 -0800
commit06e5c999f10269a532304e89a6adb2fbfeb0593c (patch)
treec83148f14906289ef86d99908011d97a4fb8aba1 /tools/perf/scripts/python/exported-sql-viewer.py
parent67ad2c73ff29b32bd09135ec07c26e59490dbb3b (diff)
bpf: Set uattr->batch.count as zero before batched update or deletion
generic_map_{delete,update}_batch() doesn't set uattr->batch.count as zero before it tries to allocate memory for key. If the memory allocation fails, the value of uattr->batch.count will be incorrect. Fix it by setting uattr->batch.count as zero beore batched update or deletion. Signed-off-by: Hou Tao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions