[PATCH openEuler-5.10 62/68] pinctrl: mediatek: fix global-out-of-bounds issue