]> git.baikalelectronics.ru Git - kernel.git/commit
usb: missing parentheses in USE_NEW_SCHEME
authorQi Zhou <atmgnd@outlook.com>
Sat, 4 Jan 2020 11:02:01 +0000 (11:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2020 16:44:11 +0000 (17:44 +0100)
commitbb30e74d34b6090eeb2b5b8d7a1cc6c075d48749
tree86530b0a4332fccd6ab94461419184dc0f61c519
parent99b7761cc47c2b8cbed4a057c43f14b778715b8e
usb: missing parentheses in USE_NEW_SCHEME

According to 585ce7fb0087 ("usb: hub: try old enumeration scheme first
for high speed devices") the kernel will try the old enumeration scheme
first for high speed devices.  This can happen when a high speed device
is plugged in.

But due to missing parentheses in the USE_NEW_SCHEME define, this logic
can get messed up and the incorrect result happens.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Qi Zhou <atmgnd@outlook.com>
Link: https://lore.kernel.org/r/ht4mtag8ZP-HKEhD0KkJhcFnVlOFV8N8eNjJVRD9pDkkLUNhmEo8_cL_sl7xy9mdajdH-T8J3TFQsjvoYQT61NFjQXy469Ed_BbBw_x4S1E=@protonmail.com
[ fixup changelog text - gregkh]
Cc: stable <stable@vger.kernel.org>
Fixes: 585ce7fb0087 ("usb: hub: try old enumeration scheme first for high speed devices")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c