aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArkadi Sharshevsky <[email protected]>2017-01-12 09:10:37 +0100
committerDavid S. Miller <[email protected]>2017-01-12 09:25:55 -0500
commit36bf38d158d3482119b3e159c0619b3c1539b508 (patch)
tree050d254d2269e55c9cd2744cda8852bb2c56de72 /tools/perf/scripts/python
parent0719e72ccb801829a3d735d187ca8417f0930459 (diff)
mlxsw: spectrum: 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: 56ade8fe3fe1 ("mlxsw: spectrum: Add initial support for Spectrum ASIC") Signed-off-by: Arkadi Sharshevsky <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions