OSDN Git Service

mac80211_hwsim: propagate genlmsg_reply return code
authorLi RongQing <lirongqing@baidu.com>
Tue, 19 Feb 2019 05:12:40 +0000 (13:12 +0800)
committerJohannes Berg <johannes.berg@intel.com>
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 <lirongqing@baidu.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c

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