diff options
Diffstat (limited to 'net/llc/af_llc.c')
-rw-r--r-- | net/llc/af_llc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c index 233794435bb8..5a04db745c8d 100644 --- a/net/llc/af_llc.c +++ b/net/llc/af_llc.c | |||
@@ -187,8 +187,10 @@ static int llc_ui_release(struct socket *sock) | |||
187 | llc->laddr.lsap, llc->daddr.lsap); | 187 | llc->laddr.lsap, llc->daddr.lsap); |
188 | if (!llc_send_disc(sk)) | 188 | if (!llc_send_disc(sk)) |
189 | llc_ui_wait_for_disc(sk, sk->sk_rcvtimeo); | 189 | llc_ui_wait_for_disc(sk, sk->sk_rcvtimeo); |
190 | if (!sock_flag(sk, SOCK_ZAPPED)) | 190 | if (!sock_flag(sk, SOCK_ZAPPED)) { |
191 | llc_sap_put(llc->sap); | ||
191 | llc_sap_remove_socket(llc->sap, sk); | 192 | llc_sap_remove_socket(llc->sap, sk); |
193 | } | ||
192 | release_sock(sk); | 194 | release_sock(sk); |
193 | if (llc->dev) | 195 | if (llc->dev) |
194 | dev_put(llc->dev); | 196 | dev_put(llc->dev); |