提交 35b9f6e4 编写于 作者: O openharmony_ci 提交者: Gitee

!9 【轻量级 PR】:fix #I2E09M

Merge pull request !9 from Caoruihong/N/A
......@@ -226,7 +226,7 @@ error:
usbd_enum_unlock(cpd->udev);
if (crd->is_uref) {
if (--(cpd->udev->refcount) == 0)
if (cpd->udev && --(cpd->udev->refcount) == 0)
cv_broadcast(&cpd->udev->ref_cv);
}
mtx_unlock(&usb_ref_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册