]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: systemport: Check DSA notifier master against ourself
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 26 Oct 2017 01:01:05 +0000 (18:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 13:12:35 +0000 (22:12 +0900)
commitc0c21458d7d242adf9c3a3e2f3f95392164325ae
tree910cf300dd6a107a7f71629949e30cc8326d99e4
parent399ba77a94e1ee01f747b168c429a121164ac962
net: systemport: Check DSA notifier master against ourself

Check that the master network device that is signaled through the DSA
notifier is actually going to be ourself, otherwise, we could just be
de-referencing garbage from other drivers.

Fixes: 84ff33eeb23d ("net: systemport: Establish DSA network device queue mapping")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c