Commit 6da4bbeb authored by Marek Vasut's avatar Marek Vasut Committed by Greg Kroah-Hartman
Browse files

i2c: xiic: Fix broken locking on tx_msg



[ Upstream commit c119e7d0 ]

The tx_msg is set from multiple places, sometimes without locking,
which fall apart on any SMP system. Only ever access tx_msg inside
the driver mutex.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Acked-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
Stable-dep-of: 1d4a1adb ("i2c: xiic: Try re-initialization on bus busy timeout")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent dd70c8a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment