diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2018-01-17 10:29:01 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2018-08-30 14:42:42 +0900 |
commit | 3809b8f4d01b091a44e5c20979aa47044a2b3293 (patch) | |
tree | 18619ac433be31fe31aee284e964d78c8fe6aee8 | |
parent | b8c8782fad3a7960581c3a157e1ea07c719bc15c (diff) | |
download | linux-rpi3-3809b8f4d01b091a44e5c20979aa47044a2b3293.tar.gz linux-rpi3-3809b8f4d01b091a44e5c20979aa47044a2b3293.tar.bz2 linux-rpi3-3809b8f4d01b091a44e5c20979aa47044a2b3293.zip |
usb: dwc_otg: remove wrong memory accesses found by kasan
dwc_otg_hcd_is_bandwidth_allocated() requres ep_hcpriv pointer,
but passed parameter is double pointer and it cuases bad memory
access. Remove the wrong memory accesses.
Change-Id: I8292613f16fbf91ed9736b2a97e4afdb3bbbccec
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r-- | drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c index dbcb9209cc84..aef2cfab6fe4 100644 --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c @@ -819,7 +819,7 @@ static int dwc_otg_urb_enqueue(struct usb_hcd *hcd, if ((usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) || (usb_pipetype(urb->pipe) == PIPE_INTERRUPT)) { if (!dwc_otg_hcd_is_bandwidth_allocated - (dwc_otg_hcd, ref_ep_hcpriv)) { + (dwc_otg_hcd, *ref_ep_hcpriv)) { alloc_bandwidth = 1; } } |