OpenCloudOS-Kernel/drivers/usb/misc/sisusbvga
Changming Liu 2b53a19284 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>
2020-07-15 16:48:10 +02:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile usb: sisusb: let files build only when needed 2019-01-25 10:02:49 +01:00
sisusb.c USB: sisusbvga: Fix a potential UB casued by left shifting a negative value 2020-07-15 16:48:10 +02:00
sisusb.h USB: misc: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
sisusb_con.c USB: sisusbvga: change char to u8 for sisusb_copy_memory 2020-06-18 10:33:55 +02:00
sisusb_init.c usb: sisusb: let files build only when needed 2019-01-25 10:02:49 +01:00
sisusb_init.h USB: sisusbvga: change char to u8 for sisusb_copy_memory 2020-06-18 10:33:55 +02:00
sisusb_struct.h USB: misc: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00