[PATCH 5.17 013/140] gpiolib: of: fix bounds check for gpio-reserved-ranges