mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
If a driver probe fails, unset it from the device. This fixes a problem
with certain multiport cards. Approved by: jkh
This commit is contained in:
parent
88007fd897
commit
1d9a6ae08b
1 changed files with 3 additions and 1 deletions
|
|
@ -790,8 +790,10 @@ device_probe_child(device_t dev, device_t child)
|
|||
/*
|
||||
* The driver returned an error so it certainly doesn't match.
|
||||
*/
|
||||
if (result > 0)
|
||||
if (result > 0) {
|
||||
device_set_driver(child, 0);
|
||||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* A priority lower than SUCCESS, remember the best matching
|
||||
|
|
|
|||
Loading…
Reference in a new issue