[PATCH] driver core: fix device_add error path

2007-03-11 Thread Dmitriy Monakhov
ice from the class list */ >> +list_del_init(>node); >> +up(>class->sem); > <<<<<< block end > May be i've missed something, but i'm confuesd a litle bit. > For example if error happens while device_pm_add() we jump to label "

[PATCH] driver core: fix device_add error path

2007-03-11 Thread Dmitriy Monakhov
-class-devices list yet. Folowing patch fix this copy-paste error: [PATCH] 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: Monakhov Dmitriy [EMAIL PROTECTED] --- drivers/base/core.c |9 - 1 files