android_kernel_samsung_a7y1.../tools
Shuah Khan 0826b0f58e usbip: Fix unsafe unaligned pointer usage
[ Upstream commit 585c91f40d201bc564d4e76b83c05b3b5363fe7e ]

Fix unsafe unaligned pointer usage in usbip network interfaces. usbip tool
build fails with new gcc -Werror=address-of-packed-member checks.

usbip_network.c: In function ‘usbip_net_pack_usb_device’:
usbip_network.c:79:32: error: taking address of packed member of ‘struct usbip_usb_device’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
   79 |  usbip_net_pack_uint32_t(pack, &udev->busnum);

Fix with minor changes to pass by value instead of by address.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20200109012416.2875-1-skhan@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:56:35 +02:00
..
arch
build
cgroup
firewire
hv
iio
include
laptop/freefall
lguest
lib tools lib api fs: Fix gcc9 stringop-truncation compilation error 2020-04-07 13:56:33 +02:00
net
nfsd
perf perf probe: Fix wrong address verification 2020-04-07 13:39:00 +02:00
power tools/power/cpupower: Fix initializer override in hsw_ext_cstates 2020-04-07 13:20:20 +02:00
scripts
testing rseq/selftests: Turn off timeout setting 2020-04-07 13:37:19 +02:00
thermal/tmon
time
usb usbip: Fix unsafe unaligned pointer usage 2020-04-07 13:56:35 +02:00
virtio
vm
Makefile