2019-02-19 05:22:30

by Li RongQing

[permalink] [raw]
Subject: [PATCH] mac80211_hwsim::: propagate genlmsg_reply return code

genlmsg_reply can fail, so propagate its return code

Signed-off-by: Li RongQing <[email protected]>
---
drivers/net/wireless/mac80211_hwsim.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 320edcac4699..6359053bd0c7 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -3554,7 +3554,7 @@ static int hwsim_get_radio_nl(struct sk_buff *msg, struct genl_info *info)
goto out_err;
}

- genlmsg_reply(skb, info);
+ res = genlmsg_reply(skb, info);
break;
}

--
2.16.2



2019-02-22 12:26:46

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] mac80211_hwsim::: propagate genlmsg_reply return code

Li RongQing <[email protected]> wrote:

> genlmsg_reply can fail, so propagate its return code
>
> Signed-off-by: Li RongQing <[email protected]>

Patch applied to wireless.git, thanks.

b97c9cb91d51 (HEAD -> mac80211) mac80211_hwsim::: propagate genlmsg_reply return code

--
https://patchwork.kernel.org/patch/10819185/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches