[PATCH AUTOSEL 5.4 1/9] pinctrl: mediatek: fix global-out-of-bounds issue