[PATCH 5.10 387/783] gpiolib: cdev: fix NULL-pointer dereferences