Skip to content

Commit

Permalink
mac80211_hwsim: propagate genlmsg_reply return code
Browse files Browse the repository at this point in the history
genlmsg_reply can fail, so propagate its return code

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Li RongQing authored and Johannes Berg committed Feb 22, 2019
1 parent 6321aa1 commit 1740771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1740771

Please sign in to comment.