driver: Fix unregister device after device probe failure
When a device probe fails the device is removed from the active list.
If then the device is unregistered afterwards it is removed from the
active list again resulting in a crash. To fix this initialize the
devices active list entry when removing it from the active list.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c976b06 commit 46bb3a4d8490b318fbcfac7b69c217cec05d7a8f
@Sascha Hauer Sascha Hauer authored on 8 Feb 2016
Showing 1 changed file
View
drivers/base/driver.c