OpenCloudOS-Kernel/drivers/staging/fsl-dpaa2
Colin Ian King 5555ebbbac 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: 44baaa43d7 ("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>
2019-06-09 13:07:23 +02:00
..
ethsw staging: fsl-dpaa2/ethsw: fix memory leak of switchdev_work 2019-06-09 13:07:23 +02:00
Kconfig staging: fsl-dpaa2: use help instead of ---help--- in Kconfig 2019-05-20 10:49:06 +02:00
Makefile staging: add missing SPDX lines to Makefile files 2019-04-03 11:10:15 +02:00