[PATCH v4.19.x] can: flexcan: fix out-of-bounds array access