VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Patrick Caulfield <pcaulfie@redhat.com> 2007-07-17 16:53:15 +0100 committer: Steven Whitehouse <swhiteho@redhat.com> 2007-08-14 10:29:27 +0100 commit: 01c8cab25863de007fe8c598d0033919ea8ae65e parent: 41684f9547455b395ffd65e5b7961067d20a2872
Commit Summary:
[DLM] zero unused parts of sockaddr_storage
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index d15fd5f9f5c5..631bc431e6af 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -313,6 +313,7 @@ static void make_sockaddr(struct sockaddr_storage *saddr, uint16_t port,
 		in6_addr->sin6_port = cpu_to_be16(port);
 		*addr_len = sizeof(struct sockaddr_in6);
 	}
+	memset((char *)saddr + *addr_len, 0, sizeof(struct sockaddr_storage) - *addr_len);
 }
 
 /* Close a remote connection and tidy up */