Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

patch to fix lkm bug

From: Evan Farrer <farrer(at)uofu.net>
Date: Fri Apr 25 2003 - 09:26:54 EDT


The following patch fixes a bug that causes the system to hang when a lkm is loaded more than once. Please apply, and let me know if there are any problems with it.

Thanks for a great OS,

Evan Farrer

Index: sys/kern/kern_lkm.c



RCS file: /cvs/src/sys/kern/kern_lkm.c,v retrieving revision 1.37
diff -a -u -r1.37 kern_lkm.c
--- sys/kern/kern_lkm.c	2002/03/14 01:27:04	1.37
+++ sys/ker/kern_lkm.c	2003/04/24 19:31:46
@@ -432,6 +432,7 @@
 			lkm_state = LKMS_UNLOADING;	/* for lkmunreserve */
 			lkmunreserve();			/* free memory */
 			lkmfree(curp);			/* free slot */
+			curp = NULL;
 			break;
 		}
Received on Fri Apr 25 09:36:45 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:48:38 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library