Linux-Hams archive - July 1999: [PATCH] Kernel crash when downing interface

[PATCH] Kernel crash when downing interface

Matthias Welwarsky (kixprysr@unitbv.ro)
Thu, 01 Jul 1999 10:18:28 +0200


This is a multi-part message in MIME format.
--------------1FA02F4DE38A4BD01111C4EA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi there,

I finally took the time to have a look after the crashes people reported
on linux-hams. The kernel oopsed on "ifconfig <iface> down" if there
were live connections via <iface>. I don't quite know if the attached
patch fixes the problem, but it seems to be reasonable. Please give it a
try.

Gruss,
Matthias

--
Two OS engineers facing a petri net chart:
	"dead lock in four moves!"
--------------1FA02F4DE38A4BD01111C4EA
Content-Type: text/plain; charset=us-ascii;
 name="af_ax25.c.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="af_ax25.c.patch"

--- af_ax25.c.original Mon Jun 21 11:39:46 1999 +++ af_ax25.c Mon Jun 21 11:48:15 1999 @@ -141,6 +141,11 @@ */ void ax25_free_cb(ax25_cb *ax25) { + /* MW: stop heartbeat timer before destroying + * the control block + */ + ax25_stop_heartbeat(ax25); + if (ax25->digipeat != NULL) { kfree(ax25->digipeat); ax25->digipeat = NULL;

--------------1FA02F4DE38A4BD01111C4EA--