]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci-mtk: break loop when find the endpoint to drop
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Tue, 2 Feb 2021 08:38:24 +0000 (16:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Feb 2021 18:46:32 +0000 (19:46 +0100)
commit74b50d780d442eec806d266990f1649ff6dd9f9a
treeeabd94eaec0d4581d0a2efac4f01a5c99fdc1bfe
parent9f72be7293abeb5fc220d65d67d4e1b457035052
usb: xhci-mtk: break loop when find the endpoint to drop

No need to check the following endpoints after finding the endpoint
wanted to drop.

Fixes: 9f72be7293ab ("usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints")
Cc: stable <stable@vger.kernel.org>
Reported-by: Ikjoon Jang <ikjn@chromium.org>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1612255104-5363-1-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk-sch.c