aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2019-06-08 12:50:31 +0100
committerGreg Kroah-Hartman <[email protected]>2019-06-09 13:07:23 +0200
commit5555ebbbac822b4fa28db2be15aaf98b3c21af26 (patch)
tree8f9c8147f0fb3e37aceb726d3f0631c41817c155 /tools/perf/scripts/python
parent7a58b4abc7744da76b7a3c25589103705ea0df2f (diff)
staging: fsl-dpaa2/ethsw: fix memory leak of switchdev_work
In the default event case switchdev_work is being leaked because nothing is queued for work. Fix this by kfree'ing switchdev_work before returning NOTIFY_DONE. Addresses-Coverity: ("Resource leak") Fixes: 44baaa43d7cc ("staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions