diff options
| author | Colin Ian King <[email protected]> | 2019-06-08 12:50:31 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-06-09 13:07:23 +0200 |
| commit | 5555ebbbac822b4fa28db2be15aaf98b3c21af26 (patch) | |
| tree | 8f9c8147f0fb3e37aceb726d3f0631c41817c155 /tools/perf/scripts/python | |
| parent | 7a58b4abc7744da76b7a3c25589103705ea0df2f (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