lkml.org 
[lkml]   [2006]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 001 of 14] knfsd: Change the store of auth_domains to not be a 'cache'.
On Thu, 9 Mar 2006 17:51:27 +1100, NeilBrown wrote:

> struct auth_domain *unix_domain_find(char *name)
> {
> - [code deletions removed]
> + struct auth_domain *rv;
> + struct unix_domain *new = NULL;
>
> - [code deletions removed]
> + rv = auth_domain_lookup(name, NULL);
> + while(1) {
> + if (rv != &new->h) {
> + if (new) auth_domain_put(&new->h);
> + return rv;
> + }

> + new = kmalloc(sizeof(*new), GFP_KERNEL);
> + if (new == NULL)
> + return NULL;

My C skills are a bit rusty, but is seems the value of new is offsetted
while still NULL. I could not find any further updates in the patch
series.

-Paul

-
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/

\
 
 \ /
  Last update: 2006-03-09 17:29    [W:0.839 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site