diff options
| author | Alexander Wilhelm <alexander.wilhelm@westermo.com> | 2026-03-26 08:17:52 +0100 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2026-03-27 12:10:15 +0000 |
| commit | e4cf6087cab382c7031e6b436ec55202fa9f2d7b (patch) | |
| tree | 25596267090817b922c0b05c3f3cd11250d80fbb /include/linux | |
| parent | 552994294fe27b42a6a735b0388029b45d776b38 (diff) | |
net: qrtr: fix endian handling of confirm_rx field
Convert confirm_rx to little endian when enqueueing and convert it back on
receive. This fixes control flow on big endian hosts, little endian is
unaffected.
On transmit, store confirm_rx as __le32 using cpu_to_le32(). On receive,
apply le32_to_cpu() before using the value. !! ensures the value is 0 or 1
in native endianness, so the conversion isn’t strictly required here, but
it is kept for consistency and clarity.
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Alexander Wilhelm <alexander.wilhelm@westermo.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
