i2c: imx-lpi2c: clean rx/tx buffers upon new message
stable inclusion from stable-v5.10.178 commit e1f80b4dfad966638f5c65ae9f98d599c4be8cf2 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8D927 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e1f80b4dfad966638f5c65ae9f98d599c4be8cf2 -------------------------------- [ Upstream commit 987dd36c ] When start sending a new message clear the Rx & Tx buffer pointers in order to avoid using stale pointers. Signed-off-by:Alexander Stein <alexander.stein@ew.tq-group.com> Tested-by:
Emanuele Ghidoli <emanuele.ghidoli@toradex.com> Signed-off-by:
Wolfram Sang <wsa@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment