diff --git a/drivers/soc/apple/aop.rs b/drivers/soc/apple/aop.rs index 85123ea95d9af..3099c44a084d1 100644 --- a/drivers/soc/apple/aop.rs +++ b/drivers/soc/apple/aop.rs @@ -966,6 +966,12 @@ impl AFKEndpoint { data: &[u8], ret: Option>, ) -> Result>> { + // A crashed firmware takes no more messages and answers none. Refuse the call before it + // reserves a tag: a tag reserved now is never released, and once they are all gone every + // caller would see "too many inflight calls" instead of the crash. + if client.crashed.load(Acquire) { + return Err(ENODEV); + } if client.epic_v4 && self .calls