Commit 1c92be0
authored
fix(virtualization-dra): skip usb gateway detach for untracked devices (#2298)
Fix USB device cleanup in virtualization-dra during Unprepare.
The allocation store now checks whether a device is tracked in usbipAllocatedDevicesCount before calling USBGateway detach cleanup. Devices that are not tracked by USBGateway are skipped. For tracked devices, USBGateway detach is executed only when the current device has exactly one active tracked consumer. Devices with multiple consumers only have their consumer count decremented, and invalid zero-count tracked state is skipped with a warning
---------
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>1 parent a7ad756 commit 1c92be0
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
453 | 455 | | |
454 | 456 | | |
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
458 | | - | |
| 460 | + | |
459 | 461 | | |
460 | 462 | | |
| 463 | + | |
| 464 | + | |
461 | 465 | | |
462 | 466 | | |
463 | 467 | | |
| |||
0 commit comments