[PATCH AUTOSEL 5.15 06/14] chardev: Fix potential memory leak when cdev_add() failed