[PATCH 5.15 491/731] gpiolib: cdev: fix NULL-pointer dereferences