提交 1e2f5ad3 编写于 作者: Y Yuyao Lin 提交者: Yongqiang Liu

USB: Fix kABI for usb_device->reset_in_progress

hulk inclusion
category: bugfix
bugzilla:https://gitee.com/src-openeuler/kernel/issues/I675RE
CVE: CVE-2022-4662

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

Fix kABI by using  __GENKSYMS__ for usb_device->reset_in_progress.
Signed-off-by: NYuyao Lin <linyuyao1@huawei.com>
Reviewed-by: Nzhangjialin <zhangjialin11@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
Signed-off-by: NYongqiang Liu <liuyongqiang13@huawei.com>
上级 b81c162f
......@@ -665,7 +665,6 @@ struct usb_device {
unsigned can_submit:1;
unsigned persist_enabled:1;
unsigned reset_in_progress:1;
unsigned have_langid:1;
unsigned authorized:1;
unsigned authenticated:1;
......@@ -677,6 +676,11 @@ struct usb_device {
unsigned usb2_hw_lpm_allowed:1;
unsigned usb3_lpm_u1_enabled:1;
unsigned usb3_lpm_u2_enabled:1;
#ifndef __GENKSYMS__
unsigned reset_in_progress:1;
#endif
int string_langid;
/* static strings from the device */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册