Make sure to trap failures correctly in ndis_get_info() and ndis_set_info().
This commit is contained in:
parent
d1bab139fe
commit
dda13ca0ef
@ -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…
x
Reference in New Issue
Block a user