We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df09413 commit 7734e18Copy full SHA for 7734e18
1 file changed
drivers/gpu/drm/asahi/slotalloc.rs
@@ -136,7 +136,7 @@ impl<T: SlotItem> SlotAllocator<T> {
136
lock_key1: LockClassKey,
137
lock_key2: LockClassKey,
138
) -> Result<SlotAllocator<T>> {
139
- let mut slots = Vec::try_with_capacity(num_slots as usize)?;
+ let mut slots = Vec::with_capacity(num_slots as usize, GFP_KERNEL)?;
140
141
for i in 0..num_slots {
142
slots
0 commit comments