Thread (3 messages) 3 messages, 2 authors, 2015-08-26

Re: [PATCH] of: device: fix NULL pointer dereference on driver removal

From: Felipe Balbi <hidden>
Date: 2015-08-26 14:13:04
Also in: linux-omap, lkml, stable

On Wed, Aug 26, 2015 at 08:14:36AM -0500, Rob Herring wrote:
On Tue, Aug 25, 2015 at 2:34 PM, Felipe Balbi [off-list ref] wrote:
quoted
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 [off-list ref]
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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help