]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 13 Dec 2021 14:23:07 +0000 (15:23 +0100)
commitd10ddec766d81cbe560283c9adf23635d5edc8c4
tree55bdc9f001fcc8a2217728dc635aeda300498f7b
parentdbecb1cdc06b2349ccd7f2d9fb1c2a5e13327ad9
usb: xhci-mtk: fix list_del warning when enable list debug

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

Fixes: 349f622cd0d4 ("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