Skip to content

Commit

Permalink
NET: AX.25: Stop heartbeat timer on disconnect.
Browse files Browse the repository at this point in the history
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 <richard@rns-stearn.demon.co.uk>
Cc: stable@vger.kernel.org	# all branches
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Richard Stearn authored and David S. Miller committed Jul 15, 2015
1 parent 738ac1e commit da27862
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ax25/ax25_subr.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ void ax25_disconnect(ax25_cb *ax25, int reason)
{
ax25_clear_queues(ax25);

ax25_stop_heartbeat(ax25);
ax25_stop_t1timer(ax25);
ax25_stop_t2timer(ax25);
ax25_stop_t3timer(ax25);
Expand Down

0 comments on commit da27862

Please sign in to comment.