Skip to content

Commit da27862

Browse files
Richard Stearndavem330
authored andcommitted
NET: AX.25: Stop heartbeat timer on disconnect.
This may result in a kernel panic. The bug has always existed but somehow we've run out of luck now and it bites. Signed-off-by: Richard Stearn <[email protected]> Cc: [email protected] # all branches Signed-off-by: Ralf Baechle <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 738ac1e commit da27862

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ax25/ax25_subr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ void ax25_disconnect(ax25_cb *ax25, int reason)
264264
{
265265
ax25_clear_queues(ax25);
266266

267+
ax25_stop_heartbeat(ax25);
267268
ax25_stop_t1timer(ax25);
268269
ax25_stop_t2timer(ax25);
269270
ax25_stop_t3timer(ax25);

0 commit comments

Comments
 (0)