[PATCH] sunrpc/auth_gss: auth_domain refcount fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please put this patch together with
auth_gss-unregister-gss_domain-when-unloading-module.patch.

Because recent auth_domain_lookup() refcounting change affected it.

Subject: [PATCH] sunrpc/auth_gss: auth_domain refcount fix

It is unnecessary to decrease refcount after auth_domain_lookup()
when new entry is inserted.

Cc: Neil Brown <[email protected]>
Cc: Andy Adamson <[email protected]>
Cc: J. Bruce Fields <[email protected]>
Cc: Trond Myklebust <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>

Index: 2.6-mm/net/sunrpc/auth_gss/svcauth_gss.c
===================================================================
--- 2.6-mm.orig/net/sunrpc/auth_gss/svcauth_gss.c
+++ 2.6-mm/net/sunrpc/auth_gss/svcauth_gss.c
@@ -770,7 +770,6 @@ svcauth_gss_register_pseudoflavor(u32 ps
 		kfree(new->h.name);
 		goto out_free_dom;
 	}
-	auth_domain_put(&new->h);
 	return 0;
 
 out_free_dom:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux