Skip to content

Commit 7727ec1

Browse files
aloktiwakuba-moo
authored andcommitted
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: bb81b2d ("net: add Xilinx emac lite device driver") Signed-off-by: Alok Tiwari <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c7979c3 commit 7727ec1

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
@@ -286,7 +286,7 @@ static void xemaclite_aligned_read(u32 *src_ptr, u8 *dest_ptr,
286286

287287
/* Read the remaining data */
288288
for (; length > 0; length--)
289-
*to_u8_ptr = *from_u8_ptr;
289+
*to_u8_ptr++ = *from_u8_ptr++;
290290
}
291291
}
292292

0 commit comments

Comments
 (0)