[PATCH 6.1 0740/1146] gpiolib: cdev: fix NULL-pointer dereferences