[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091001222941.GA15096@redhat.com>
Date: Fri, 2 Oct 2009 00:29:42 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Christian Borntraeger <borntraeger@...ibm.com>, scott@...ntu.com,
zbr@...emap.net, linux-kernel@...r.kernel.org, matthltc@...ibm.com,
davem@...emloft.net, netdev@...r.kernel.org
Subject: Re: [PATCH] connector: Fix regression introduced by sid connector
On 10/01, Andrew Morton wrote:
>
> On Wed, 30 Sep 2009 08:43:11 +0200
> Christian Borntraeger <borntraeger@...ibm.com> wrote:
>
> > --- linux-2.6.orig/kernel/sys.c
> > +++ linux-2.6/kernel/sys.c
> > @@ -1110,6 +1110,8 @@ SYSCALL_DEFINE0(setsid)
> > err = session;
> > out:
> > write_unlock_irq(&tasklist_lock);
> > + if (err > 0)
> > + proc_sid_connector(sid);
> > return err;
> > }
>
> kernel/sys.c: In function 'sys_setsid':
> kernel/sys.c:1114: warning: passing argument 1 of 'proc_sid_connector' from incompatible pointer type
>
> Pass a `struct pid*' into a function expecting a `struct task_struct*'.
> Surely it will crash??
Oh, indeed, it should be
proc_sid_connector(group_leader);
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists