[PATCH] driver: Fix unregister device after device probe failure

Juergen Borleis jbe at pengutronix.de
Mon Feb 8 03:33:32 PST 2016


On Monday 08 February 2016 11:43:13 Sascha Hauer wrote:
> 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 at pengutronix.de>

Tested-by: Juergen Borleis <j.borleis at pengutroni.de>

jb
-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |



More information about the barebox mailing list