--- linux-2.6.20/fs/exec.c	2007-02-05 00:14:54.000000000 +0530
+++ linux-2.6.20_modified/fs/exec.c	2007-04-02 17:56:56.369105272 +0530
@@ -100,6 +100,7 @@ int unregister_binfmt(struct linux_binfm
 	while (*tmp) {
 		if (fmt == *tmp) {
 			*tmp = fmt->next;
+			fmt->next = NULL;
 			write_unlock(&binfmt_lock);
 			return 0;
 		}
