On Tue, Jul 15, 2008 at 9:56 AM, Bob Copeland <[EMAIL PROTECTED]> wrote:
> On Tue, Jul 15, 2008 at 9:17 AM, Bob Copeland <[EMAIL PROTECTED]> wrote:
>> On Tue, Jul 15, 2008 at 8:30 AM,  <[EMAIL PROTECTED]> wrote:
>>> Hi Everybody,
>>> I have a problem with ath5k driver, when removing it out of the kernel 
>>> using "rmmod ath5k" or "modprobe -r ath5k".
>>> The System freezes (very fast) without giving any Log-Message.
>>
>> Uh oh... I'm recompiling now, will let you know what I find.
>
> So far so good for me with latest wireless testing and
> compat-wireless-07-11.  Can you post your .config?

I went back and looked at hw->priv and it looks to be allocated with
kzalloc.  But we always call unregister_leds whether we register any
or not.  So maybe to be on the safe side it could use a memset.  Can
you try adding to the top of ath5k_init_leds():

    memset(&sc->rx_led, 0, sizeof(struct ath5k_led));
    memset(&sc->tx_led, 0, sizeof(struct ath5k_led));

and see if that helps?

-- 
Bob Copeland %% www.bobcopeland.com
_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to