usb: dwc_otg: check value of uWord type after convert
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 6 Mar 2019 09:31:39 +0000 (18:31 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 6 Jul 2020 09:07:44 +0000 (18:07 +0900)
commitc0a2e28e9950fdfa93bca11efa52bb80d5829373
tree04bf7ed8a4b40998abf14ba279fe3787b3cfe5f9
parent549180982cfb3543bccbaa01d1147e1bc8becf52
usb: dwc_otg: check value of uWord type after convert

uWord type is array, so checking variable with the type is not
proper. Check value after convert.

Change-Id: I5eca569feb949037bda212346c481fde82525d3d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/usb/host/dwc_otg/dwc_otg_pcd.c