We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 724f84a commit c1a65f4Copy full SHA for c1a65f4
1 file changed
rust/kernel/of.rs
@@ -13,6 +13,7 @@ use core::marker::PhantomData;
13
use core::num::NonZeroU32;
14
15
use crate::{
16
+ alloc::flags::*,
17
bindings, driver,
18
driver::RawDeviceId,
19
prelude::*,
@@ -398,7 +399,7 @@ impl<'a, T: PropertyUnit> TryFrom<Property<'a>> for Vec<T> {
398
399
let mut v = Vec::new();
400
let val = p.value();
401
for off in (0..p.len()).step_by(T::UNIT_SIZE) {
- v.try_push(T::from_bytes(&val[off..off + T::UNIT_SIZE])?)?;
402
+ v.push(T::from_bytes(&val[off..off + T::UNIT_SIZE])?, GFP_KERNEL)?;
403
}
404
Ok(v)
405
0 commit comments