[PATCH 6.17 084/146] can: sja1000: fix max irq loop handling