Skip to content

Commit 5189daf

Browse files
committed
Merge tag 'nfsd-6.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fixes from Chuck Lever: - Two minor fixes for recent changes * tag 'nfsd-6.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: nfsd: don't set SVC_SOCK_ANONYMOUS when creating nfsd sockets sunrpc: avoid -Wformat-security warning
2 parents 7299cd4 + 91da337 commit 5189daf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

fs/nfsd/nfsctl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,8 +2069,7 @@ int nfsd_nl_listener_set_doit(struct sk_buff *skb, struct genl_info *info)
20692069
continue;
20702070
}
20712071

2072-
ret = svc_xprt_create_from_sa(serv, xcl_name, net, sa,
2073-
SVC_SOCK_ANONYMOUS,
2072+
ret = svc_xprt_create_from_sa(serv, xcl_name, net, sa, 0,
20742073
get_current_cred());
20752074
/* always save the latest error */
20762075
if (ret < 0)

net/sunrpc/svc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ param_get_pool_mode(char *buf, const struct kernel_param *kp)
161161
str[len] = '\n';
162162
str[len + 1] = '\0';
163163

164-
return sysfs_emit(buf, str);
164+
return sysfs_emit(buf, "%s", str);
165165
}
166166

167167
module_param_call(pool_mode, param_set_pool_mode, param_get_pool_mode,

0 commit comments

Comments
 (0)