[PATCH 01/43] chardev: Avoid potential use-after-free in 'chrdev_open()'