[PATCH 5.10 270/300] can: sja1000: fix max irq loop handling