aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRafał Miłecki <[email protected]>2021-03-18 09:01:42 +0100
committerDavid S. Miller <[email protected]>2021-03-18 14:44:05 -0700
commit55cfeb396965c3906a84d09a9c487d065e37773b (patch)
treee72318dec817413f9e0b9b55df20dc8597018c5f /tools/perf/scripts/python/stackcollapse.py
parenta5538a777b73b35750ed1ffff8c1ef539e861624 (diff)
net: dsa: bcm_sf2: add function finding RGMII register
Simple macro like REG_RGMII_CNTRL_P() is insufficient as: 1. It doesn't validate port argument 2. It doesn't support chipsets with non-lineral RGMII regs layout Missing port validation could result in getting register offset from out of array. Random memory -> random offset -> random reads/writes. It affected e.g. BCM4908 for REG_RGMII_CNTRL_P(7). Fixes: a78e86ed586d ("net: dsa: bcm_sf2: Prepare for different register layouts") Signed-off-by: Rafał Miłecki <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions