mac80211_hwsim: propagate genlmsg_reply return code [Linux 5.0]

This Linux kernel change "mac80211_hwsim: propagate genlmsg_reply return code" is included in the Linux 5.0 release. This change is authored by Li RongQing <lirongqing [at]> on Tue Feb 19 13:12:40 2019 +0800. The commit for this change in Linux stable tree is 1740771 (patch).

mac80211_hwsim: propagate genlmsg_reply return code

genlmsg_reply can fail, so propagate its return code

Signed-off-by: Li RongQing <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 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 320edca..6359053 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);

Leave a Reply

Your email address will not be published. Required fields are marked *