[PATCH 5.17 0778/1126] clk: visconti: prevent array overflow in visconti_clk_register_gates()