mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
wireless/ieee802154: Fixes missing handle of read/write being able to be interrupted
This commit is contained in:
@@ -1482,7 +1482,11 @@ int mac802154_req_data(MACHANDLE mac,
|
||||
|
||||
priv->radio->ops->txnotify_csma(priv->radio);
|
||||
|
||||
sem_wait(&trans.sem);
|
||||
ret = sem_wait(&trans.sem);
|
||||
if (ret < 0)
|
||||
{
|
||||
return -EINTR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user