summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2020-10-07 23:57:42 +0300
committerJakub Kicinski <kuba@kernel.org>2020-10-10 04:15:47 +0300
commit9047a617dc2f8ea0575ef80c38e57ed52b712a1f (patch)
treefe753701031987c1339963808b2e264bc97462af /tools/perf/scripts/python/stackcollapse.py
parentc60a2cefb32d2f0e88141b942f92d94bd69bb56f (diff)
downloadlinux-9047a617dc2f8ea0575ef80c38e57ed52b712a1f.tar.xz
net/smc: cleanup buffer usage in smc_listen_work()
coccinelle informs about net/smc/af_smc.c:1770:10-11: WARNING: opportunity for kzfree/kvfree_sensitive Its not that kzfree() would help here, the memset() is done to prepare the buffer for another socket receive. Fix that warning message by reordering the calls, while at it eliminate the unneeded variable cclc2 and use sizeof(*buf) as above in the same function. No functional changes. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions