patch-2.4.0-test5 linux/arch/i386/kernel/apm.c

Next file: linux/arch/i386/kernel/i8259.c
Previous file: linux/arch/i386/kernel/apic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/arch/i386/kernel/apm.c linux/arch/i386/kernel/apm.c
@@ -1295,7 +1295,7 @@
 			as1->next = as->next;
 	}
 	unlock_kernel();
-	kfree_s(as, sizeof(*as));
+	kfree(as);
 	return 0;
 }
 
@@ -1423,6 +1423,8 @@
 	kapmd_running = 1;
 
 	exit_files(current);	/* daemonize doesn't do exit_files */
+	current->files = init_task.files;
+	atomic_inc(&current->files->count);
 	daemonize();
 
 	strcpy(current->comm, "kapmd");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)