usb: xhci-mtk: fix list_del warning when enable list debug
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 9 Dec 2021 02:54:22 +0000 (10:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 08:32:46 +0000 (09:32 +0100)
commit67cbcd3fb8e6412cc5220315c7266e52c2b66268
treec6f7de62ad45b2be4d3fc01737acdbcd37b939a7
parentd8888cdabedf353ab9b5a6af75f70bf341a3e7df
usb: xhci-mtk: fix list_del warning when enable list debug

commit ccc14c6cfd346e85c3ecb970975afd5132763437 upstream.

There is warning of 'list_del corruption' when enable list debug
(CONFIG_DEBUG_LIST=y), fix it by using list_del_init()

Fixes: 4ce186665e7c ("usb: xhci-mtk: Do not use xhci's virt_dev in drop_endpoint")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20211209025422.17108-1-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk-sch.c