mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
llc: delete timers synchronously in llc_sk_free()
The connection timers of an llc sock could be still flying after we delete them in llc_sk_free(), and even possibly after we free the sock. We could just wait synchronously here in case of troubles. Note, I leave other call paths as they are, since they may not have to wait, at least we can change them to synchronously when needed. Also, move the code to net/llc/llc_conn.c, which is apparently a better place. Reported-by: <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
5411b6187a
commit
b905ef9ab9
3 changed files with 23 additions and 9 deletions
|
|
@ -97,6 +97,7 @@ static __inline__ char llc_backlog_type(struct sk_buff *skb)
|
|||
|
||||
struct sock *llc_sk_alloc(struct net *net, int family, gfp_t priority,
|
||||
struct proto *prot, int kern);
|
||||
void llc_sk_stop_all_timers(struct sock *sk, bool sync);
|
||||
void llc_sk_free(struct sock *sk);
|
||||
|
||||
void llc_sk_reset(struct sock *sk);
|
||||
|
|
|
|||
Loading…
Reference in a new issue