USB: sisusbvga: Change port variable from signed to unsigned
authorChangming Liu <liu.changm@northeastern.edu>
Tue, 21 Apr 2020 03:41:25 +0000 (23:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 May 2020 15:24:20 +0000 (17:24 +0200)
commit56d0f59a4ea93d3b550d9c5ef08c337b4acf8133
tree09f7872d62da8768a026ef5ef25f42dcddfa5a7b
parente21c8c03af20932c15d8b1d3bb9cbad9607a6eab
USB: sisusbvga: Change port variable from signed to unsigned

commit 2df7405f79ce1674d73c2786fe1a8727c905d65b upstream.

Change a bunch of arguments of wrapper functions which pass signed
integer to an unsigned integer which might cause undefined behaviors
when sign integer overflow.

Signed-off-by: Changming Liu <liu.changm@northeastern.edu>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/BL0PR06MB45482D71EA822D75A0E60A2EE5D50@BL0PR06MB4548.namprd06.prod.outlook.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/sisusbvga/sisusb.c
drivers/usb/misc/sisusbvga/sisusb_init.h