summaryrefslogtreecommitdiff
path: root/target/device/AMD/DBAu1500/kernel-patches/006_init_unshare.patch
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-03-25 19:09:09 +0000
committerEric Andersen <andersen@codepoet.org>2006-03-25 19:09:09 +0000
commitba46d4d7caf5ec6c89fbbde4bb19a86a272c4611 (patch)
treead16141328c9251d4ce5461e63bb831c9806a140 /target/device/AMD/DBAu1500/kernel-patches/006_init_unshare.patch
parent7aa8096f080eb0bf8db862741e57a21285ab4c61 (diff)
update to linux 2.4.16 and current uClibc.
Diffstat (limited to 'target/device/AMD/DBAu1500/kernel-patches/006_init_unshare.patch')
-rw-r--r--target/device/AMD/DBAu1500/kernel-patches/006_init_unshare.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/device/AMD/DBAu1500/kernel-patches/006_init_unshare.patch b/target/device/AMD/DBAu1500/kernel-patches/006_init_unshare.patch
new file mode 100644
index 000000000..8b756f8ad
--- /dev/null
+++ b/target/device/AMD/DBAu1500/kernel-patches/006_init_unshare.patch
@@ -0,0 +1,11 @@
+--- orig/kernel/fork.c 2006-03-21 01:41:50.000000000 -0700
++++ linux-2.6.16/kernel/fork.c 2006-03-21 01:41:50.000000000 -0700
+@@ -773,7 +773,7 @@
+
+ /* This can race but the race causes us to copy when we don't
+ need to and drop the copy */
+- if(atomic_read(&files->count) == 1)
++ if(atomic_read(&files->count) == 1 || current->pid == 1)
+ {
+ atomic_inc(&files->count);
+ return 0;