projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb10cc
)
usb: dwc_otg: check value of uWord type after convert
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Wed, 6 Mar 2019 09:31:39 +0000
(18:31 +0900)
committer
Junghoon Kim
<jhoon20.kim@samsung.com>
Tue, 11 Jun 2019 00:35:54 +0000
(09:35 +0900)
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
patch
|
blob
|
history
diff --git
a/drivers/usb/host/dwc_otg/dwc_otg_pcd.c
b/drivers/usb/host/dwc_otg/dwc_otg_pcd.c
index
9dabbe5
..
2ffd4f1
100644
(file)
--- a/
drivers/usb/host/dwc_otg/dwc_otg_pcd.c
+++ b/
drivers/usb/host/dwc_otg/dwc_otg_pcd.c
@@
-1487,7
+1487,7
@@
int dwc_otg_pcd_ep_enable(dwc_otg_pcd_t * pcd,
num = UE_GET_ADDR(desc->bEndpointAddress);
dir = UE_GET_DIR(desc->bEndpointAddress);
- if (!
desc->wMaxPacketSize
) {
+ if (!
UGETW(desc->wMaxPacketSize)
) {
DWC_WARN("bad maxpacketsize\n");
retval = -DWC_E_INVALID;
goto out;