Commit 01486c5a authored by Piotr Haber's avatar Piotr Haber Committed by John W. Linville
Browse files

brcmsmac: increase timer reference count for new timers only

On hardware reintialization reference count of
already existing timers would be increased again.
This leads to problems on module unloading.
Reviewed-by: default avatarPieter-Paul Giesberts <>
Reviewed-by: default avatarHante Meuleman <>
Reviewed-by: default avatarArend van Spriel <>
Signed-off-by: default avatarPiotr Haber <>
Signed-off-by: default avatarArend van Spriel <>
Signed-off-by: default avatarJohn W. Linville <>
parent a02308e9
......@@ -1409,9 +1409,10 @@ void brcms_add_timer(struct brcms_timer *t, uint ms, int periodic)
t->ms = ms;
t->periodic = (bool) periodic;
t->set = true;
if (!t->set) {
t->set = true;
ieee80211_queue_delayed_work(hw, &t->dly_wrk, msecs_to_jiffies(ms));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment