From: Charles Manning Date: Thu, 2 Oct 2014 02:36:20 +0000 (+1300) Subject: usb: dwc2: Bits in bitfield should add up to 32 X-Git-Tag: firefly_0821_release~176^2~2898^2~2^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fd4850cfd4e4060ec85a9db590b5d0e23eec68f5;p=firefly-linux-kernel-4.4.55.git usb: dwc2: Bits in bitfield should add up to 32 The unioned u32 is used for clearing etc. Having the number of bitfield bits add up to more than 32 is broken, even if benign. Acked-by: Paul Zimmerman Signed-off-by: Charles Manning Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h index bf015ab3b44c..55c90c53f2d6 100644 --- a/drivers/usb/dwc2/core.h +++ b/drivers/usb/dwc2/core.h @@ -619,7 +619,7 @@ struct dwc2_hsotg { unsigned port_suspend_change:1; unsigned port_over_current_change:1; unsigned port_l1_change:1; - unsigned reserved:26; + unsigned reserved:25; } b; } flags;