Skip to contentSkip to conversation

Removal of gratiutous panic()

PATCH New David Woodhouse 1 participant 1 message Nov 27, 2000

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Removal of gratiutous panic()

Index: kernel/module.c
===================================================================
RCS file: /inst/cvs/linux/kernel/module.c,v
retrieving revision 1.1.1.1.2.11

module.c +6 -3
diff -u -r1.1.1.1.2.11 module.c
@@ -100,7 +100,8 @@
 			spin_unlock(&ime_lock);
 			kfree(ime_new);
 			/* Program logic error, fatal */
-			panic("inter_module_register: duplicate im_name '%s'", im_name);
+			printk(KERN_ERR "inter_module_register: duplicate im_name '%s'", im_name);
+			BUG();
 		}
 	}
 	list_add(&(ime_new->list), &ime_list);
@@ -140,7 +141,8 @@
 	}
 	else {
 		/* Program logic error, fatal */
-		panic("inter_module_unregister: no entry for '%s'", im_name);
+		printk(KERN_ERR "inter_module_unregister: no entry for '%s'", im_name);
+		BUG();
 	}
 }
 
@@ -211,7 +213,8 @@
 		}
 	}
 	spin_unlock(&ime_lock);
-	panic("inter_module_put: no entry for '%s'", im_name);
+	printk(KERN_ERR "inter_module_put: no entry for '%s'", im_name);
+	BUG();
 }
 
 

--
dwmw2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/