Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: emaclite: Fix missing pointer increment in aligned_read()

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>

authored by

Alok Tiwari and committed by
Jakub Kicinski
7727ec15 c7979c39

+1 -1
+1 -1
drivers/net/ethernet/xilinx/xilinx_emaclite.c
··· 286 286 287 287 /* Read the remaining data */ 288 288 for (; length > 0; length--) 289 - *to_u8_ptr = *from_u8_ptr; 289 + *to_u8_ptr++ = *from_u8_ptr++; 290 290 } 291 291 } 292 292