Skip to content

Commit

Permalink
fs: nfs: Fix nfsmount error
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
masayuki2009 authored and xiaoxiang781216 committed Aug 27, 2024
1 parent 6b21beb commit ec4d315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/rpc_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ static int rpcclnt_socket(FAR struct rpcclnt *rpc, in_port_t rport)

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

memset(&laddr, 0, sizeof(laddr));
laddr.ss_family = raddr.ss_family;
memset(laddr.ss_data, 0, sizeof(laddr.ss_data));

if (raddr.ss_family == AF_INET6)
{
Expand Down

0 comments on commit ec4d315

Please sign in to comment.