Skip to content

Commit

Permalink
usb: dwc2: Bits in bitfield should add up to 32
Browse files Browse the repository at this point in the history
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 <paulz@synopsys.com>
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Charles Manning authored and Felipe Balbi committed Oct 23, 2014
1 parent b585a48 commit fd4850c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/dwc2/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fd4850c

Please sign in to comment.