diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2020-10-07 22:57:42 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-09 18:15:47 -0700 |
commit | 9047a617dc2f8ea0575ef80c38e57ed52b712a1f (patch) | |
tree | fe753701031987c1339963808b2e264bc97462af /samples/connector | |
parent | c60a2cefb32d2f0e88141b942f92d94bd69bb56f (diff) | |
download | linux-9047a617dc2f8ea0575ef80c38e57ed52b712a1f.tar.bz2 |
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 'samples/connector')
0 files changed, 0 insertions, 0 deletions