[PATCH 6.17 125/175] gpio: cdev: make sure the cdev fd is still active before emitting events