Commit:     6d0aa06afd62a868d83c6021335622a316469527
Parent:     89eb21c35b61b5157940e1b78c2c6d0529d11c63
Author:     Chuck Lever <[EMAIL PROTECTED]>
AuthorDate: Tue Sep 11 18:00:15 2007 -0400
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 17:16:40 2007 -0400

    SUNRPC: Use correct argument type in memcpy()
    Noticed by Tom Talpey <[EMAIL PROTECTED]>:
    OBTW, there's a nit on that memcpy, too. The r_addr is an array, so
    is passing the address of the array as a char **. It's the same as
    map->r_addr, but technically the wrong type.
    Signed-off-by: Chuck Lever <[EMAIL PROTECTED]>
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
 net/sunrpc/rpcb_clnt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index 0bb6709..f88ab90 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -410,7 +410,7 @@ void rpcb_getport_async(struct rpc_task *task)
        map->r_xprt = xprt_get(xprt);
        map->r_netid = (xprt->prot == IPPROTO_TCP) ? RPCB_NETID_TCP :
-       memcpy(&map->r_addr,
+       memcpy(map->r_addr,
               rpc_peeraddr2str(rpcb_clnt, RPC_DISPLAY_UNIVERSAL_ADDR),
        map->r_owner = RPCB_OWNER_STRING;       /* ignored for GETADDR */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to