diff options
author | 2017-12-11 19:11:55 +0100 | |
---|---|---|
committer | 2017-12-13 13:44:36 -0500 | |
commit | c545a945d0d9ea2ea2c7d23d43cf0d86e32cd7cf (patch) | |
tree | 60223c66b9a9c5f74ece0905e9506155a5de0b5b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: remove duplicate includes (diff) | |
download | linux-dev-c545a945d0d9ea2ea2c7d23d43cf0d86e32cd7cf.tar.xz linux-dev-c545a945d0d9ea2ea2c7d23d43cf0d86e32cd7cf.zip |
tipc: eliminate potential memory leak
In the function tipc_sk_mcast_rcv() we call refcount_dec(&skb->users)
on received sk_buffers. Since the reference counter might hit zero at
this point, we have a potential memory leak.
We fix this by replacing refcount_dec() with kfree_skb().
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions