We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2979000 commit 1716aedCopy full SHA for 1716aed
1 file changed
drivers/gpu/drm/asahi/alloc.rs
@@ -771,7 +771,7 @@ impl HeapAllocator {
771
garbage: if keep_garbage {
772
Some({
773
let mut v = Vec::new();
774
- v.try_reserve(128)?;
+ v.reserve(128, GFP_KERNEL)?;
775
v
776
})
777
} else {
@@ -1058,8 +1058,8 @@ impl Allocator for HeapAllocator {
1058
for node in g.drain(0..block) {
1059
inner.total_garbage -= node.size() as usize;
1060
garbage
1061
- .try_push(node)
1062
- .expect("try_push() failed after reserve()");
+ .push(node, GFP_KERNEL)
+ .expect("push() failed after reserve()");
1063
}
1064
1065
});
0 commit comments