Skip to content

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