brcmsmac: increase timer reference count for new timers only
authorPiotr Haber <phaber@broadcom.com>
Thu, 10 Jan 2013 10:20:48 +0000 (11:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:24:41 +0000 (18:24 -0600)
commitdf2f07099760702c9f3664230263b6be3142b7d7
tree8249d3d4e1aa8a10f1696c0df2af58e63ec1f83d
parent8c69e052e2330794fce15b7f299c6c797aed8b7d
brcmsmac: increase timer reference count for new timers only

commit a1fe52801a992e590cdaee2fb47a94bac9b5da90 upstream.

On hardware reintialization reference count of
already existing timers would be increased again.
This leads to problems on module unloading.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Piotr Haber <phaber@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c