From: Dan Carpenter Date: Sat, 11 May 2013 16:13:49 +0000 (+0300) Subject: svcauth_gss: fix error code in use_gss_proxy() X-Git-Tag: v3.10-rc4~14^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=625cdd78d119d5848ac3c47d129bdf5f23f64120;p=karo-tx-linux.git svcauth_gss: fix error code in use_gss_proxy() This should return zero on success and -EBUSY on error so the type needs to be int instead of bool. Signed-off-by: Dan Carpenter Signed-off-by: J. Bruce Fields --- diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index 871c73c92165..2c6a1ece54bf 100644 --- a/net/sunrpc/auth_gss/svcauth_gss.c +++ b/net/sunrpc/auth_gss/svcauth_gss.c @@ -1287,7 +1287,7 @@ static bool use_gss_proxy(struct net *net) #ifdef CONFIG_PROC_FS -static bool set_gss_proxy(struct net *net, int type) +static int set_gss_proxy(struct net *net, int type) { struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); int ret = 0;