-
由 Borislav Petkov 提交于
When encountering an error while executing the driver's ->add method, we should cancel registration and unwind what we've regged so far. The low level ->add methods do return proper error codes but those aren't looked at in sysdev_driver_register(). Fix that by sharing the unregistering code. Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
f4203e30