You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
USB: fix unsafe USB_SS_MAX_STREAMS() definition
Macro arguments used in expressions need to be enclosed in parenthesis to avoid unpleasant surprises. Signed-off-by: Dmitry Torokhov <dtor@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
969e3033ae
commit
c9642374d0
@@ -584,7 +584,7 @@ struct usb_ss_ep_comp_descriptor {
|
||||
|
||||
#define USB_DT_SS_EP_COMP_SIZE 6
|
||||
/* Bits 4:0 of bmAttributes if this is a bulk endpoint */
|
||||
#define USB_SS_MAX_STREAMS(p) (1 << (p & 0x1f))
|
||||
#define USB_SS_MAX_STREAMS(p) (1 << ((p) & 0x1f))
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user