summaryrefslogtreecommitdiff
path: root/fs/udf
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2020-01-08 18:24:16 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-28 15:42:29 +0100
commitcce8df1a4d4872645b5254d2a03cb50b28bea251 (patch)
tree84ff407471cf94389bd49e196b3f8039c5dd8924 /fs/udf
parent9008eb85a2da44143ad7a0d80e102c418d61dcef (diff)
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>
Diffstat (limited to 'fs/udf')
0 files changed, 0 insertions, 0 deletions