Skip to content

Commit 57a42b4

Browse files
MakwanaVihasgregkh
authored andcommitted
staging: r8188eu: call _cancel_timer_ex from _rtw_free_recv_priv
The _rtw_init_recv_priv() initializes precvpriv->signal_stat_timer and sets it's timeout interval to 1000 ms. But _rtw_free_recv_priv() doesn't cancel the timer and we need to explicitly call _cancel_timer_ex() after we call _rtw_free_recv_priv() to cancel the timer. Call _cancel_timer_ex() from inside _rtw_free_recv_priv() as every init function needs a matching free function. Signed-off-by: Vihas Makwana <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cff7326 commit 57a42b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/staging/r8188eu/core/rtw_recv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ void _rtw_free_recv_priv(struct recv_priv *precvpriv)
103103
vfree(precvpriv->pallocated_frame_buf);
104104

105105
rtl8188eu_free_recv_priv(padapter);
106+
_cancel_timer_ex(&precvpriv->signal_stat_timer);
106107
}
107108

108109
struct recv_frame *_rtw_alloc_recvframe(struct __queue *pfree_recv_queue)

0 commit comments

Comments
 (0)