From: Jens Axboe Date: Thu, 20 Apr 2006 11:05:33 +0000 (+0200) Subject: [PATCH] Don't inherit ->splice_pipe across forks X-Git-Tag: v2.6.17-rc3~60^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a0aa7f68afeeb92f6274b395177c20e617c8ed2d;p=linux-2.6-omap-h63xx.git [PATCH] Don't inherit ->splice_pipe across forks It's really task private, so clear that field on fork after copying task structure. Signed-off-by: Jens Axboe --- diff --git a/kernel/fork.c b/kernel/fork.c index 34515772611..d2fa57d480d 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -180,6 +180,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig) atomic_set(&tsk->usage,2); atomic_set(&tsk->fs_excl, 0); tsk->btrace_seq = 0; + tsk->splice_pipe = NULL; return tsk; }