Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965384AbWHOSiI (ORCPT ); Tue, 15 Aug 2006 14:38:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965219AbWHOSiH (ORCPT ); Tue, 15 Aug 2006 14:38:07 -0400 Received: from e4.ny.us.ibm.com ([32.97.182.144]:23012 "EHLO e4.ny.us.ibm.com") by vger.kernel.org with ESMTP id S965384AbWHOSiF (ORCPT ); Tue, 15 Aug 2006 14:38:05 -0400 Subject: Re: [PATCH 5/7] pid: Implement pid_nr From: Dave Hansen To: "Eric W. Biederman" Cc: Andrew Morton , linux-kernel@vger.kernel.org, containers@lists.osdl.org, Oleg Nesterov In-Reply-To: <1155666193751-git-send-email-ebiederm@xmission.com> References: <1155666193751-git-send-email-ebiederm@xmission.com> Content-Type: text/plain Date: Tue, 15 Aug 2006 11:37:43 -0700 Message-Id: <1155667063.12700.56.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 530 Lines: 18 On Tue, 2006-08-15 at 12:23 -0600, Eric W. Biederman wrote: > +static inline pid_t pid_nr(struct pid *pid) > +{ > + pid_t nr = 0; > + if (pid) > + nr = pid->nr; > + return nr; > +} When is it valid to be passing around a NULL 'struct pid *'? -- Dave - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/