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: accepted/tizen/unified/20191111.065916~179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25950c8fb5de1c199e187b272391a4feb1e2617b;p=platform%2Fkernel%2Flinux-rpi.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 08a3e41..a7d1e03 100644 --- a/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c +++ b/drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.c @@ -828,7 +828,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; } }