diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-03-14 03:07:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-14 10:02:15 -0400 |
commit | 29d1df72ce2ac187d457990fe445a16212dcfa19 (patch) | |
tree | 099306c5dd9e6a77ddc750bcd37d1913ca9fe9a3 /net/core/sock.c | |
parent | pktgen: use dynamic allocation for debug print buffer (diff) | |
download | linux-dev-29d1df72ce2ac187d457990fe445a16212dcfa19.tar.xz linux-dev-29d1df72ce2ac187d457990fe445a16212dcfa19.zip |
pktgen: Fix memory leak in pktgen_if_write
_buf_ is an array and the one that must be freed is _tp_ instead.
Fixes: a870a02cc963 ("pktgen: use dynamic allocation for debug print buffer")
Reported-by: Wang Jian <jianjian.wang1@gmail.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions