[PATCH 6.0 0716/1073] gpiolib: cdev: fix NULL-pointer dereferences