From 47ee9d66d7f15e8ac0939a79c0cf7cbfedfa8b54 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Wed, 17 Jan 2018 10:29:01 +0900 Subject: [PATCH] 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 --- drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 50c8705..722d453 100644 --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c @@ -824,7 +824,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; } } -- 2.7.4