xhcid: do not panic if unable to find configuration descriptor

This commit is contained in:
Jeremy Soller
2025-03-13 08:41:23 -06:00
parent f91f3926cf
commit 451480a3e0
+1 -2
View File
@@ -920,8 +920,7 @@ impl Xhci {
.config_descs
.iter()
.find(|desc| desc.configuration_value == req.config_desc)
.ok_or(Error::new(EBADFD))
.unwrap();
.ok_or(Error::new(EBADFD))?;
//TODO: USE ENDPOINTS FROM ALL INTERFACES
let mut endp_desc_count = 0;