We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74b5e12 commit dbaf407Copy full SHA for dbaf407
1 file changed
src/sched/syscalls/mod.rs
@@ -26,7 +26,10 @@ pub async fn sys_sched_getaffinity(
26
};
27
let cpu_mask = {
28
let sched_data = task.sched_data.lock_save_irq();
29
- sched_data.as_ref().map(|data| data.cpu_mask).unwrap_or([u8::MAX; CPU_MASK_SIZE])
+ sched_data
30
+ .as_ref()
31
+ .map(|data| data.cpu_mask)
32
+ .unwrap_or([u8::MAX; CPU_MASK_SIZE])
33
34
let mut cpu_mask: &[u8] = &cpu_mask;
35
if CPU_MASK_SIZE > size {
0 commit comments