Skip to content

nfs-kernel-server: fix segfault on x86_64#2842

Closed
flyn-org wants to merge 1 commit intoopenwrt:for-15.05from
flyn-org:for-15.05-nfs-kernel-server
Closed

nfs-kernel-server: fix segfault on x86_64#2842
flyn-org wants to merge 1 commit intoopenwrt:for-15.05from
flyn-org:for-15.05-nfs-kernel-server

Conversation

@flyn-org
Copy link
Copy Markdown
Contributor

I previously made this pull request against master (#2568). That was a mistake because master uses musl. 15.05 still uses uclibc, so it requires this patch.

Signed-off-by: W. Michael Petullo mike@flyn.org

Signed-off-by: W. Michael Petullo <mike@flyn.org>
@champtar
Copy link
Copy Markdown
Member

Hi @MikePetullo,
Was this sent upstream?

.ai_protocol = (int)IPPROTO_UDP,
.ai_flags = AI_NUMERICHOST,
.ai_family = AF_UNSPEC,
+ .ai_socktype = 0,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not guarded with "#ifndef UCLIBC", is this intentional, is this really needed?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not needed but does not harm either. When using named struct initializers, then fields not explicitely mentioned are guaranteed to be initialized with zero.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @jow-

@champtar
Copy link
Copy Markdown
Member

Also your commit message doesn't mention uclibc when your commit is uclibc specific

@champtar
Copy link
Copy Markdown
Member

champtar commented Jul 2, 2016

merged in df9eb01

@champtar champtar closed this Jul 2, 2016
@flyn-org flyn-org deleted the for-15.05-nfs-kernel-server branch January 7, 2017 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants