Skip to content

Commit

Permalink
Added a missing vfio-pci driver check for the rebind argument for
Browse files Browse the repository at this point in the history
the enumeratePCIs function.
  • Loading branch information
Jared J committed Jun 28, 2021
1 parent 3db09d9 commit bc15041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ function enumeratePCIs { # This makes arguments and also unbinds from drivers. O
echo
elif [[ $@ == *"restorebind"* ]] && ! isDry
then
if ! [ -z "$driver" ]
if ! [ -z "$driver" ] && [ "$driver" != "vfio-pci" ]
then
printer "${colors[green]} Rebinding $vendorClass back to driver:\t${colors[none]}$driver"
echo "0x$vendor 0x$class" | sudo tee /sys/bus/pci/drivers/vfio-pci/remove_id >/dev/null
Expand Down

0 comments on commit bc15041

Please sign in to comment.