提交 113197aa 编写于 作者: C Caoruihong 提交者: Gitee

fix #I2E09M

上级 5ba30a2a
......@@ -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.
先完成此消息的编辑!
想要评论请 注册