diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-08-29 16:40:27 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-29 16:40:27 -0400 |
| commit | c1b054d03f5b31c33eaa0b267c629b118eaf3790 (patch) | |
| tree | 9333907ca767be24fcb3667877242976c3e3c8dd /net/sunrpc/svcauth_unix.c | |
| parent | 559fb51ba7e66fe298b8355fabde1275b7def35f (diff) | |
| parent | bf4e70e54cf31dcca48d279c7f7e71328eebe749 (diff) | |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
| -rw-r--r-- | net/sunrpc/svcauth_unix.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c index 2b99b4028d31..d6baf6fdf8a9 100644 --- a/net/sunrpc/svcauth_unix.c +++ b/net/sunrpc/svcauth_unix.c | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | #include <linux/err.h> | 8 | #include <linux/err.h> |
| 9 | #include <linux/seq_file.h> | 9 | #include <linux/seq_file.h> |
| 10 | #include <linux/hash.h> | 10 | #include <linux/hash.h> |
| 11 | #include <linux/string.h> | ||
| 11 | 12 | ||
| 12 | #define RPCDBG_FACILITY RPCDBG_AUTH | 13 | #define RPCDBG_FACILITY RPCDBG_AUTH |
| 13 | 14 | ||
| @@ -20,14 +21,6 @@ | |||
| 20 | */ | 21 | */ |
| 21 | 22 | ||
| 22 | 23 | ||
| 23 | static char *strdup(char *s) | ||
| 24 | { | ||
| 25 | char *rv = kmalloc(strlen(s)+1, GFP_KERNEL); | ||
| 26 | if (rv) | ||
| 27 | strcpy(rv, s); | ||
| 28 | return rv; | ||
| 29 | } | ||
| 30 | |||
| 31 | struct unix_domain { | 24 | struct unix_domain { |
| 32 | struct auth_domain h; | 25 | struct auth_domain h; |
| 33 | int addr_changes; | 26 | int addr_changes; |
| @@ -55,7 +48,7 @@ struct auth_domain *unix_domain_find(char *name) | |||
| 55 | if (new == NULL) | 48 | if (new == NULL) |
| 56 | return NULL; | 49 | return NULL; |
| 57 | cache_init(&new->h.h); | 50 | cache_init(&new->h.h); |
| 58 | new->h.name = strdup(name); | 51 | new->h.name = kstrdup(name, GFP_KERNEL); |
| 59 | new->h.flavour = RPC_AUTH_UNIX; | 52 | new->h.flavour = RPC_AUTH_UNIX; |
| 60 | new->addr_changes = 0; | 53 | new->addr_changes = 0; |
| 61 | new->h.h.expiry_time = NEVER; | 54 | new->h.h.expiry_time = NEVER; |
