We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7984641 commit 23c6357Copy full SHA for 23c6357
drivers/soc/apple/pmp.rs
@@ -187,7 +187,12 @@ impl PmpData {
187
let n_entries = node.property_count_elem::<u64>(prop_name)? / 2;
188
let ranges = node
189
.property_read_array_vec::<u64>(prop_name, n_entries * 2)?
190
- .required_by(&self.dev)?;
+ .optional();
191
+ let ranges = if let Some(r) = ranges {
192
+ r
193
+ } else {
194
+ return Ok((OPC_GET_IOVA_TABLE | OPC_ACK_MASK) << OPC_SHIFT);
195
+ };
196
let mut table = self.dev.while_bound_with(|bound_dev| {
197
CoherentAllocation::alloc_coherent(bound_dev, 512, GFP_KERNEL)
198
})?;
0 commit comments