Thread (2 messages) flat view 2 messages, 1 author, 2011-07-25

Re: [PATCH] b43: fix invalid memory access in b43_ssb_remove()

From: Pavel Roskin <hidden>
Date: 2011-07-25 16:27:00

On 07/22/2011 06:07 PM, Pavel Roskin wrote:
wldev is freed in b43_one_core_detach() and should not be accessed after
that call.  Keep wldev->dev in a local variable.

Signed-off-by: Pavel Roskin<redacted>
---

Linux 3.0 is not affected.  The bug was introduced in 482f0538.
P.S. This needs to be propagated to Linux 3.1.
-	b43_one_core_detach(wldev->dev);
+	b43_one_core_detach(dev);
As a long term solution, we probably want a function that takes wldev 
and has "free" in its name, so that the effect is clear.

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