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