SUNRPC: do not fail gss proc NULL calls with EACCES
authorAndy Adamson <andros@netapp.com>
Wed, 20 Nov 2013 18:00:17 +0000 (13:00 -0500)
committerJiri Slaby <jslaby@suse.cz>
Thu, 3 Apr 2014 08:32:12 +0000 (10:32 +0200)
commit c297c8b99b07f496ff69a719cfb8e8fe852832ed upstream.

Otherwise RPCSEC_GSS_DESTROY messages are not sent.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/sunrpc/auth_gss/auth_gss.c

index a7f9821d17608dc115d57fc3cf9179d322292034..bb035f8451c6a2a4883a273cd1b2d6bd12a000d9 100644 (file)
@@ -1508,7 +1508,7 @@ out:
 static int
 gss_refresh_null(struct rpc_task *task)
 {
-       return -EACCES;
+       return 0;
 }
 
 static __be32 *