diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-06-08 12:50:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-14 08:11:22 +0200 |
commit | 22a20b9f6d9f6adb73e3334f861669bf2c55879c (patch) | |
tree | 1b3de7699a95028823759f40cf81d540fa98ac43 /drivers/staging/vc04_services/bcm2835-camera | |
parent | cc396afa1959f8224a8289d57d8dd3dc9a3a745d (diff) | |
download | linux-stable-22a20b9f6d9f6adb73e3334f861669bf2c55879c.tar.gz linux-stable-22a20b9f6d9f6adb73e3334f861669bf2c55879c.tar.bz2 linux-stable-22a20b9f6d9f6adb73e3334f861669bf2c55879c.zip |
staging: fsl-dpaa2/ethsw: fix memory leak of switchdev_work
commit 5555ebbbac822b4fa28db2be15aaf98b3c21af26 upstream.
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 <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vc04_services/bcm2835-camera')
0 files changed, 0 insertions, 0 deletions