[PATCH OLK-5.10] gpiolib: fix memory use-after-free in gpiochip_setup_dev()