aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/common_usb.h')
-rw-r--r--executor/common_usb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/common_usb.h b/executor/common_usb.h
index ccf00d7ba..eaffd8108 100644
--- a/executor/common_usb.h
+++ b/executor/common_usb.h
@@ -447,7 +447,7 @@ static bool lookup_control_response(struct vusb_descriptors* descs, struct vusb_
}
}
- if (descs->generic) {
+ if (descs && descs->generic) {
*response_data = &descs->generic->data[0];
*response_length = descs->generic->len;
return true;
@@ -469,7 +469,7 @@ static bool lookup_control_response(struct vusb_descriptors* descs, struct vusb_
}
}
- if (resps->generic) {
+ if (resps && resps->generic) {
*response_data = &resps->generic->data[0];
*response_length = resps->generic->len;
return true;