mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
Make sure to trap failures correctly in ndis_get_info() and ndis_set_info().
This commit is contained in:
parent
d1bab139fe
commit
dda13ca0ef
1 changed files with 6 additions and 0 deletions
|
|
@ -1001,6 +1001,9 @@ ndis_set_info(arg, oid, buf, buflen)
|
|||
rval == NDIS_STATUS_NOT_ACCEPTED)
|
||||
return(ENOTSUP);
|
||||
|
||||
if (rval != NDIS_STATUS_SUCCESS)
|
||||
return(ENODEV);
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
|
@ -1362,6 +1365,9 @@ ndis_get_info(arg, oid, buf, buflen)
|
|||
rval == NDIS_STATUS_NOT_ACCEPTED)
|
||||
return(ENOTSUP);
|
||||
|
||||
if (rval != NDIS_STATUS_SUCCESS)
|
||||
return(ENODEV);
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue