Skip to content

Commit ec4d315

Browse files
masayuki2009xiaoxiang781216
authored andcommitted
fs: nfs: Fix nfsmount error
Summary: - I noticed that nfsmount does not work due to the recent changes on sockaddr_storage alignment. - This commit fixes this issue. Impact: - None Testing: - Tested with sabre-6quad:netnsh_smp (QEMU) Signed-off-by: Masayuki Ishikawa <[email protected]>
1 parent 6b21beb commit ec4d315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/rpc_clnt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ static int rpcclnt_socket(FAR struct rpcclnt *rpc, in_port_t rport)
184184

185185
memcpy(&raddr, rpc->rc_name, sizeof(raddr));
186186

187+
memset(&laddr, 0, sizeof(laddr));
187188
laddr.ss_family = raddr.ss_family;
188-
memset(laddr.ss_data, 0, sizeof(laddr.ss_data));
189189

190190
if (raddr.ss_family == AF_INET6)
191191
{

0 commit comments

Comments
 (0)