net/utils: net_lock() and net_restorelock() not return a value. That values is the standard zero on success; negated errno value on failure. This return value is only needed for -ECANCELED. That cancellation indication needs to ripple all the way back to the highest levels where the cancellation can be acted on. This commit only adds the return value; it does not add checking for the return values of net_lock() and net_restorelock() at higher levels. That is required too.

This commit is contained in:
Gregory Nutt
2019-04-14 09:37:25 -06:00
parent 839620a954
commit c999d12bba
3 changed files with 39 additions and 17 deletions
+3 -2
View File
@@ -301,11 +301,12 @@ void net_initialize(void);
* None
*
* Returned Value:
* None
* Zero (OK) is returned on success; a negated errno value is returned on
* failured (probably -ECANCELED).
*
****************************************************************************/
void net_lock(void);
int net_lock(void);
/****************************************************************************
* Name: net_unlock