mac80211_hwsim: propagate genlmsg_reply return code
authorLi RongQing <[email protected]>
Tue, 19 Feb 2019 05:12:40 +0000 (13:12 +0800)
committerJohannes Berg <[email protected]>
Fri, 22 Feb 2019 12:27:22 +0000 (13:27 +0100)
genlmsg_reply can fail, so propagate its return code

Signed-off-by: Li RongQing <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
drivers/net/wireless/mac80211_hwsim.c

index 320edcac469985308ea96a7883dcdf86367d83ae..6359053bd0c783e0a85c0954ebec52717a288245 100644 (file)
@@ -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;
        }