aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorChangming Liu <charley.ashbringer@gmail.com>2020-07-11 00:30:18 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-15 16:48:10 +0200
commit2b53a19284f537168fb506f2f40d7fda40a01162 (patch)
treed8eef43a1976f0773698edf9c26f475b4a7bf40a /include/linux/usb.h
parentUSB: Remove pci-dma-compat wrapper APIs. (diff)
downloadwireguard-linux-2b53a19284f537168fb506f2f40d7fda40a01162.tar.xz
wireguard-linux-2b53a19284f537168fb506f2f40d7fda40a01162.zip
USB: sisusbvga: Fix a potential UB casued by left shifting a negative value
The char buffer buf, receives data directly from user space, so its content might be negative and its elements are left shifted to form an unsigned integer. Since left shifting a negative value is undefined behavior, thus change the char to u8 to elimintate this UB. Signed-off-by: Changming Liu <charley.ashbringer@gmail.com> Link: https://lore.kernel.org/r/20200711043018.928-1-charley.ashbringer@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb.h')
0 files changed, 0 insertions, 0 deletions