blob: adbd1528b7a3fac67644dc431d75956f24d2bc3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From ba66a6c6eeb16eb8e2d2ec368d6605b974070d4b Mon Sep 17 00:00:00 2001
From: Matt Bilker <me@mbilker.us>
Date: Wed, 25 Sep 2024 04:35:50 +0000
Subject: [PATCH] lib: do not take mdev UUID as 17.x may get the vGPU info
multiple times
- See #37
---
src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib.rs b/src/lib.rs
index eddb72d..6e1ffad 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -539,7 +539,7 @@ fn handle_profile_override<C: VgpuConfigLike>(config: &mut C) -> bool {
};
let vgpu_type = format!("nvidia-{}", config.vgpu_type());
- let mdev_uuid = LAST_MDEV_UUID.lock().take();
+ let mdev_uuid = LAST_MDEV_UUID.lock().clone();
if let Some(config_override) = config_overrides.profile.get(vgpu_type.as_str()) {
info!("Applying profile {} overrides", vgpu_type);
--
2.49.0
|