forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commita2bd970
i2c: cpm: Fix i2c_ram structure
the i2c_ram structure is missing the sdmatmp field mentionned indatasheet for MPC8272 at paragraph 36.5. With this field missing, thehardware would write past the allocated memory done throughcpm_muram_alloc for the i2c_ram structure and land in memory allocatedfor the buffers descriptors corrupting the cbd_bufaddr field. Since thisfield is only set during setup(), the first i2c transaction would workand the following would send data read from an arbitrary memorylocation.Fixes:61045db ("i2c: Add support for I2C bus on Freescale CPM1/CPM2 controllers")Signed-off-by: Nicolas VINCENT <nicolas.vincent@vossloh.com>Acked-by: Jochen Friedrich <jochen@scram.de>Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu>Signed-off-by: Wolfram Sang <wsa@kernel.org>1 parent845b891 commita2bd970
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
0 commit comments
Comments
(0)