Commit 0e45dba
4.16 and 4.17 kernel panic fix
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.1 parent 9c8972a commit 0e45dba
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| 553 | + | |
553 | 554 | | |
554 | 555 | | |
555 | 556 | | |
| |||
564 | 565 | | |
565 | 566 | | |
566 | 567 | | |
567 | | - | |
568 | | - | |
569 | 568 | | |
570 | 569 | | |
571 | 570 | | |
| |||
0 commit comments