]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Define domain_release handle for AUTH_UNIX domains
authorNeil Brown <neilb@cse.unsw.edu.au>
Tue, 29 Oct 2002 10:00:40 +0000 (02:00 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Tue, 29 Oct 2002 10:00:40 +0000 (02:00 -0800)
net/sunrpc/svcauth_unix.c

index a0ecd43fbc8a4ab9c4b4310b03d4ea01aae0fe9e..7fabce411088de52b74321f3bb2970beba5452ee 100644 (file)
@@ -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,
 };