Skip to content

Commit 20648ff

Browse files
aloktiwagregkh
authored andcommitted
net: emaclite: Fix missing pointer increment in aligned_read()
[ Upstream commit 7727ec1 ] 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: bb81b2d ("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>
1 parent 894780d commit 20648ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/xilinx/xilinx_emaclite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static void xemaclite_aligned_read(u32 *src_ptr, u8 *dest_ptr,
285285

286286
/* Read the remaining data */
287287
for (; length > 0; length--)
288-
*to_u8_ptr = *from_u8_ptr;
288+
*to_u8_ptr++ = *from_u8_ptr++;
289289
}
290290
}
291291

0 commit comments

Comments
 (0)