summaryrefslogtreecommitdiffstats
path: root/include/sound/asequencer.h
diff options
context:
space:
mode:
authorMaximilian Luz <luzmaximilian@gmail.com>2021-04-11 13:34:02 +0200
committerJiri Kosina <jkosina@suse.cz>2021-05-05 14:31:55 +0200
commitb0d713c60c75cdd04bf8ad8cfb046c8530709de3 (patch)
treee6ce720d17cb5f36f60749b591fa923475743726 /include/sound/asequencer.h
parent0f0fb3d27e5ba51e40f2af4288efeaf3d293ef1a (diff)
downloadlinux-stable-b0d713c60c75cdd04bf8ad8cfb046c8530709de3.tar.gz
linux-stable-b0d713c60c75cdd04bf8ad8cfb046c8530709de3.tar.bz2
linux-stable-b0d713c60c75cdd04bf8ad8cfb046c8530709de3.zip
HID: surface-hid: Fix integer endian conversion
We want to convert from 16 bit (unsigned) little endian values contained in a packed struct to CPU native endian values here, not the other way around. So replace cpu_to_le16() with get_unaligned_le16(), using the latter instead of le16_to_cpu() to acknowledge that we are reading from a packed struct. Reported-by: kernel test robot <lkp@intel.com> Fixes: b05ff1002a5c ("HID: Add support for Surface Aggregator Module HID transport") Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/sound/asequencer.h')
0 files changed, 0 insertions, 0 deletions