diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-10-29 02:00:40 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-10-29 02:00:40 -0800 |
| commit | 159ecf449ccc0382a3c3cd1102b2da590eb44ba2 (patch) | |
| tree | ac93e659f0c3dbd51a2e9503ae77e78c46e18613 | |
| parent | 972b849474a9b2a2d056d6e9e7678aee3b448615 (diff) | |
[PATCH] Define domain_release handle for AUTH_UNIX domains
| -rw-r--r-- | net/sunrpc/svcauth_unix.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c index a0ecd43fbc8a..7fabce411088 100644 --- a/net/sunrpc/svcauth_unix.c +++ b/net/sunrpc/svcauth_unix.c @@ -68,6 +68,14 @@ struct auth_domain *unix_domain_find(char *name) return rv; } +static void svcauth_unix_domain_release(struct auth_domain *dom) +{ + struct unix_domain *ud = container_of(dom, struct unix_domain, h); + + kfree(dom->name); + kfree(ud); +} + /************************************************** * cache for IP address to unix_domain @@ -462,5 +470,6 @@ struct auth_ops svcauth_unix = { .flavour = RPC_AUTH_UNIX, .accept = svcauth_unix_accept, .release = svcauth_unix_release, + .domain_release = svcauth_unix_domain_release, }; |
