[PATCH 5.15 356/392] can: sja1000: fix max irq loop handling