提交 ed9a3b8d 编写于 作者: A Alan Stern 提交者: Zheng Zengkai

USB: core: Fix RST error in hub.c

mainline inclusion
from mainline-v6.0-rc7
commit 766a96dc
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I675RE
CVE: CVE-2022-4662

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=766a96dc558385be735a370db867e302c8f22153

--------------------------------

A recent commit added an invalid RST expression to a kerneldoc comment
in hub.c.  The fix is trivial.

Fixes: 9c6d7788 ("USB: core: Prevent nested device-reset calls")
Cc: <stable@vger.kernel.org>
Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: NBagas Sanjaya <bagasdotme@gmail.com>
Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/YxDDcsLtRZ7c20pq@rowland.harvard.eduSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYuyao Lin <linyuyao1@huawei.com>
Reviewed-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: NJialin Zhang <zhangjialin11@huawei.com>
上级 e253b825
...@@ -5968,7 +5968,7 @@ static int usb_reset_and_verify_device(struct usb_device *udev) ...@@ -5968,7 +5968,7 @@ static int usb_reset_and_verify_device(struct usb_device *udev)
* *
* Return: The same as for usb_reset_and_verify_device(). * Return: The same as for usb_reset_and_verify_device().
* However, if a reset is already in progress (for instance, if a * However, if a reset is already in progress (for instance, if a
* driver doesn't have pre_ or post_reset() callbacks, and while * driver doesn't have pre_reset() or post_reset() callbacks, and while
* being unbound or re-bound during the ongoing reset its disconnect() * being unbound or re-bound during the ongoing reset its disconnect()
* or probe() routine tries to perform a second, nested reset), the * or probe() routine tries to perform a second, nested reset), the
* routine returns -EINPROGRESS. * routine returns -EINPROGRESS.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册