summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-10-21 00:59:30 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-23 06:28:40 +0200
commite83b171568e6a69cff5eb592907b71e480b535ac (patch)
treeddac2e83934fb6850e25b5e48effd37892edccf0 /include/uapi
parentMerge branch 'mlxsw-Add-support-for-non-equal-cost-multi-path' (diff)
downloadlinux-e83b171568e6a69cff5eb592907b71e480b535ac.tar.xz
linux-e83b171568e6a69cff5eb592907b71e480b535ac.zip
net: systemport: Guard against unmapped TX ring
Because SYSTEMPORT is a (semi) normal network device, the stack may attempt to queue packets on it oustide of the DSA slave transmit path. When that happens, the DSA layer has not had a chance to tag packets with the appropriate per-port and per-queue information, and if that happens and we don't have a port 0 queue 0 available (e.g: on boards where this does not exist), we will hit a NULL pointer de-reference in bcm_sysport_select_queue(). Guard against such cases by testing for the TX ring validity. 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>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions