summaryrefslogtreecommitdiff
path: root/Documentation/zh_CN
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2011-02-01 19:19:56 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-04 02:41:03 +0300
commitf4203e3032e5ae74c3e89df85a5a6d96022d0c49 (patch)
treec1030cc10185144df78137ad2bf85ef03ede3d54 /Documentation/zh_CN
parent1f7da214e26a8ee4fbb66af50e27147d5d115c5a (diff)
downloadlinux-f4203e3032e5ae74c3e89df85a5a6d96022d0c49.tar.xz
sysdev: Do not register with sysdev when erroring on add
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: Borislav Petkov <borislav.petkov@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/zh_CN')
0 files changed, 0 insertions, 0 deletions