summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorArkadi Sharshevsky <arkadis@mellanox.com>2017-01-12 11:10:38 +0300
committerDavid S. Miller <davem@davemloft.net>2017-01-12 17:25:55 +0300
commit400fc0106dd8c27ed84781c929c1a184785b9c79 (patch)
tree61efb523b2ab9f7f559cce38a385f23fa78a4f9b /tools/perf/scripts/python/export-to-postgresql.py
parent36bf38d158d3482119b3e159c0619b3c1539b508 (diff)
downloadlinux-400fc0106dd8c27ed84781c929c1a184785b9c79.tar.xz
mlxsw: switchx2: Fix memory leak at skb reallocation
During transmission the skb is checked for headroom in order to add vendor specific header. In case the skb needs to be re-allocated, skb_realloc_headroom() is called to make a private copy of the original, but doesn't release it. Current code assumes that the original skb is released during reallocation and only releases it at the error path which causes a memory leak. Fix this by adding the original skb release to the main path. Fixes: d003462a50de ("mlxsw: Simplify mlxsw_sx_port_xmit function") Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.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