]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
staging: fsl-dpaa2: ethsw: Add missing netdevice check
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 22 Feb 2019 22:02:14 +0000 (14:02 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Feb 2019 10:52:46 +0000 (11:52 +0100)
commit11f27765f61175ac9602a05e305b9034dc6c80bf
treeb0a16f276a7e50e0140d0eeefb70694020b7f398
parent2c62d36c8144b2bf5971edcbb803a3b2c7d59239
staging: fsl-dpaa2: ethsw: Add missing netdevice check

port_switchdev_event() does not check that the target network device is
actually backed by the ethsw driver, this could be problematic in a
stacked environment case.

Fixes: 44baaa43d7cc ("staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethsw/ethsw.c