Re: [PATCH] scsi: sd: call device_del() if device_add_disk() fails

Wenchao Hao
2022-03-31T02:15:39Z

I do not think it's necessary to call device_del() on this path. If the device
has been added, put_device() would delete it from sysfs. So the origin error
handle is ok with me.