diff --git a/src/shm/multi.rs b/src/shm/multi.rs index 2e82c1aaa..bc903f480 100644 --- a/src/shm/multi.rs +++ b/src/shm/multi.rs @@ -322,7 +322,7 @@ impl MultiPool { let size = (stride * height) as usize; let buf_slot = self.buffer_list.get_mut(index).ok_or(PoolError::NotFound)?; - if buf_slot.size > size { + if size > buf_slot.size { return Err(PoolError::Overlap); }