projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
AX.25: Close socket connection on session completion
[cascardo/linux.git]
/
net
/
ax25
/
ax25_subr.c
diff --git
a/net/ax25/ax25_subr.c
b/net/ax25/ax25_subr.c
index
3b78e84
..
655a7d4
100644
(file)
--- a/
net/ax25/ax25_subr.c
+++ b/
net/ax25/ax25_subr.c
@@
-264,7
+264,8
@@
void ax25_disconnect(ax25_cb *ax25, int reason)
{
ax25_clear_queues(ax25);
- ax25_stop_heartbeat(ax25);
+ if (!sock_flag(ax25->sk, SOCK_DESTROY))
+ ax25_stop_heartbeat(ax25);
ax25_stop_t1timer(ax25);
ax25_stop_t2timer(ax25);
ax25_stop_t3timer(ax25);