driver core: fix device_add error path
- At the moment we jump here device was't added to dev->class->devices list yet. Signed-off-by: NMonakhov Dmitriy <dmonakhov@openvz.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
Showing
想要评论请 注册 或 登录