Revert "net: dsa: mv88e6xxx: Fix out-of-bound access"

This reverts commit 2230f96d6c.
This commit is contained in:
Ksawlii 2024-11-24 00:23:51 +01:00
parent d79e44c045
commit 6c2054cc66

View file

@ -453,8 +453,7 @@ static irqreturn_t mv88e6xxx_g1_atu_prob_irq_thread_fn(int irq, void *dev_id)
trace_mv88e6xxx_atu_full_violation(chip->dev, spid,
entry.portvec, entry.mac,
fid);
if (spid < ARRAY_SIZE(chip->ports))
chip->ports[spid].atu_full_violation++;
chip->ports[spid].atu_full_violation++;
}
mv88e6xxx_reg_unlock(chip);