projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SUNRPC: Use "sockaddr_storage" for storing RPC client's remote peer address
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git]
/
net
/
sunrpc
/
xprt.c
diff --git
a/net/sunrpc/xprt.c
b/net/sunrpc/xprt.c
index b45abd0743cb812cd82e1392c5325ed90ecbeaa4..4987517cc74bb9a10668bc92442c0e88d969d969 100644
(file)
--- a/
net/sunrpc/xprt.c
+++ b/
net/sunrpc/xprt.c
@@
-896,7
+896,8
@@
static struct rpc_xprt *xprt_setup(int proto, struct sockaddr_in *ap, struct rpc
if ((xprt = kzalloc(sizeof(struct rpc_xprt), GFP_KERNEL)) == NULL)
return ERR_PTR(-ENOMEM);
- xprt->addr = *ap;
+ memcpy(&xprt->addr, ap, sizeof(*ap));
+ xprt->addrlen = sizeof(*ap);
switch (proto) {
case IPPROTO_UDP: