diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index 8e30522be..430821752 100644 --- a/src/lib.rs +++ b/src/lib.rs | |||
| @@ -858,7 +858,10 @@ where | |||
| 858 | 858 | ||
| 859 | if let IoctlState::Sent { buf } = self.state.ioctl_state.get() { | 859 | if let IoctlState::Sent { buf } = self.state.ioctl_state.get() { |
| 860 | if cdc_header.id == self.ioctl_id { | 860 | if cdc_header.id == self.ioctl_id { |
| 861 | assert_eq!(cdc_header.status, 0); // todo propagate error instead | 861 | if cdc_header.status != 0 { |
| 862 | // TODO: propagate error instead | ||
| 863 | panic!("IOCTL error {=i32}", cdc_header.status as i32); | ||
| 864 | } | ||
| 862 | 865 | ||
| 863 | let resp_len = cdc_header.len as usize; | 866 | let resp_len = cdc_header.len as usize; |
| 864 | info!("IOCTL Response: {:02x}", &payload[CdcHeader::SIZE..][..resp_len]); | 867 | info!("IOCTL Response: {:02x}", &payload[CdcHeader::SIZE..][..resp_len]); |
