Skip to content

Commit a896a8a

Browse files
wentongwugregkh
authored andcommitted
mei: vsc: Utilize the appropriate byte order swap function
Switch from cpu_to_be32_array() to be32_to_cpu_array() for the received ROM data. Fixes: 566f5ca ("mei: Add transport driver for IVSC device") Cc: [email protected] # for 6.8+ Signed-off-by: Wentong Wu <[email protected]> Tested-by: Jason Chen <[email protected]> Acked-by: Sakari Ailus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a9e8fe3 commit a896a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/mei/vsc-tp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ int vsc_tp_rom_xfer(struct vsc_tp *tp, const void *obuf, void *ibuf, size_t len)
336336
return ret;
337337

338338
if (ibuf)
339-
cpu_to_be32_array(ibuf, tp->rx_buf, words);
339+
be32_to_cpu_array(ibuf, tp->rx_buf, words);
340340

341341
return ret;
342342
}

0 commit comments

Comments
 (0)