Bluetooth: Devcoredump: Fix storing u32 without specifying byte order issue
authorZijun Hu <quic_zijuhu@quicinc.com>
Mon, 17 Apr 2023 09:39:59 +0000 (17:39 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 24 Apr 2023 05:05:53 +0000 (22:05 -0700)
commit0ab905c3be8c2be368821dd2bd1f8d126064d993
treebe11e1f3013cd3c4ef2c046fa09416e013ece0a6
parent25c150ac103a4ebeed0319994c742a90634ddf18
Bluetooth: Devcoredump: Fix storing u32 without specifying byte order issue

API hci_devcd_init() stores its u32 type parameter @dump_size into
skb, but it does not specify which byte order is used to store the
integer, let us take little endian to store and parse the integer.

Fixes: f5cc609d09d4 ("Bluetooth: Add support for hci devcoredump")
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/coredump.c