]> git.baikalelectronics.ru Git - 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)
commit52bce904a96765be112900995cf141ce75876fb5
tree910cf300dd6a107a7f71629949e30cc8326d99e4
parent031a8b401ef46d2fc895df8c08686afe85a796c6
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