]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: emaclite: Fix missing pointer increment in aligned_read()
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Thu, 10 Jul 2025 17:38:46 +0000 (10:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:51:51 +0000 (08:51 +0200)
commitd24d34c4ec1f02ad67a1954d81ef6d36eb452b48
treebfd1356c7d5a535665d1ce40c41e9160a4bd5160
parenta735ae46a9b8b65e720cc6e79e24e087f751c3f6
net: emaclite: Fix missing pointer increment in aligned_read()

[ Upstream commit 7727ec1523d7973defa1dff8f9c0aad288d04008 ]

Add missing post-increment operators for byte pointers in the
loop that copies remaining bytes in xemaclite_aligned_read().
Without the increment, the same byte was written repeatedly
to the destination.
This update aligns with xemaclite_aligned_write()

Fixes: bb81b2ddfa19 ("net: add Xilinx emac lite device driver")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Link: https://patch.msgid.link/20250710173849.2381003-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/xilinx/xilinx_emaclite.c