We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01c6a48 commit df09413Copy full SHA for df09413
1 file changed
drivers/gpu/drm/asahi/slotalloc.rs
@@ -140,11 +140,14 @@ impl<T: SlotItem> SlotAllocator<T> {
140
141
for i in 0..num_slots {
142
slots
143
- .try_push(constructor(&mut data, i).map(|item| Entry {
144
- item,
145
- get_time: 0,
146
- drop_time: 0,
147
- }))
+ .push(
+ constructor(&mut data, i).map(|item| Entry {
+ item,
+ get_time: 0,
+ drop_time: 0,
148
+ }),
149
+ GFP_KERNEL,
150
+ )
151
.expect("try_push() failed after reservation");
152
}
153
0 commit comments