Message ID | 1550553160-18324-1-git-send-email-lirongqing@baidu.com (mailing list archive) |
---|---|
State | Accepted |
Commit | b97c9cb91d5101507ac8deb70e91d78ff3156ef3 |
Delegated to: | Johannes Berg |
Headers | show |
Series | mac80211_hwsim::: propagate genlmsg_reply return code | expand |
Li RongQing <lirongqing@baidu.com> wrote: > genlmsg_reply can fail, so propagate its return code > > Signed-off-by: Li RongQing <lirongqing@baidu.com> Patch applied to wireless.git, thanks. b97c9cb91d51 (HEAD -> mac80211) mac80211_hwsim::: propagate genlmsg_reply return code
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; }
genlmsg_reply can fail, so propagate its return code Signed-off-by: Li RongQing <lirongqing@baidu.com> --- drivers/net/wireless/mac80211_hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)