Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getpeername should check if tcp connection has been fully established #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lianyidao
Copy link

sock->connected is set to true before tcp connection is fully established

David Wen and others added 2 commits November 5, 2019 17:33
In Linux kernel 4.16 and 4.17, the function i2c_bit_add_bus attempts to
set the clock and data signals on the i2c bus. However, the exanic
pointer was not filled in until after the bus was registered, resulting
in NULL pointer dereference.

This commit fills the exanic pointer into the i2c adapter data before
registering the bus to work around the issue.
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.

1 participant