[PATCH AUTOSEL 6.1 15/26] chardev: Fix potential memory leak when cdev_add() failed