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
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