From 1186cd4e566812138376a3acba46893c88b5071b Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Tue, 9 May 2017 17:19:44 -0400 Subject: [PATCH] wireless/ieee802154: Fixes missing handle of read/write being able to be interrupted --- wireless/ieee802154/mac802154.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wireless/ieee802154/mac802154.c b/wireless/ieee802154/mac802154.c index 738eb47f30..54daa38195 100644 --- a/wireless/ieee802154/mac802154.c +++ b/wireless/ieee802154/mac802154.c @@ -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; + } } }