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

Robert Schwebel r.schwebel at pengutronix.de
Mon Feb 8 09:43:42 PST 2016


On Mon, Feb 08, 2016 at 12:33:32PM +0100, Juergen Borleis wrote:
> 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>
                                                  x
rsc 
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list