Skip to content

Commit 7734e18

Browse files
committed
fixup! drm/asahi: Add the Asahi driver for Apple AGX GPUs
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent df09413 commit 7734e18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/asahi/slotalloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl<T: SlotItem> SlotAllocator<T> {
136136
lock_key1: LockClassKey,
137137
lock_key2: LockClassKey,
138138
) -> Result<SlotAllocator<T>> {
139-
let mut slots = Vec::try_with_capacity(num_slots as usize)?;
139+
let mut slots = Vec::with_capacity(num_slots as usize, GFP_KERNEL)?;
140140

141141
for i in 0..num_slots {
142142
slots

0 commit comments

Comments
 (0)