From: Seung-Woo Kim Date: Wed, 17 Jan 2018 01:29:01 +0000 (+0900) Subject: usb: dwc_otg: remove wrong memory accesses found by kasan X-Git-Tag: submit/tizen/20190614.014912~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ec1c878f391462308279802bf78fd327da07538;p=platform%2Fkernel%2Flinux-rpi3.git 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 --- 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 fc43f2a66d6a..c51a7351a157 100644 --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c @@ -813,7 +813,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; } }