[PATCH 4.19 242/521] chardev: fix error handling in cdev_device_add()