Re: [PATCH] of: device: fix NULL pointer dereference on driver removal
From: Felipe Balbi
Date: Wed Aug 26 2015 - 10:13:07 EST
On Wed, Aug 26, 2015 at 08:14:36AM -0500, Rob Herring wrote:
> On Tue, Aug 25, 2015 at 2:34 PM, Felipe Balbi <balbi@xxxxxx> wrote:
> > If we don't insert resources into the resource tree,
> > calls to of_platform_depopulate() will end up in NULL
> > pointer dereferences because the resource parent will
> > be set to NULL even though we still have more resources
> > to go through.
>
> Long standing problem. A fix is in -next now and will go into 4.3 (plus stable):
>
> commit 11c63e4718acad3d8f04601c80fddd4b3d1455b1
> Author: Grant Likely <grant.likely@xxxxxxxxxx>
> Date: Sun Jun 7 15:20:11 2015 +0100
>
> drivercore: Fix unregistration path of platform devices
that commit works, but too late to add a Tested-by :-)
--
balbi
Attachment:
signature.asc
Description: Digital signature