]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mac80211_hwsim: propagate genlmsg_reply return code
authorLi RongQing <lirongqing@baidu.com>
Tue, 19 Feb 2019 05:12:40 +0000 (13:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 13:35:16 +0000 (14:35 +0100)
[ Upstream commit 17407715240456448e4989bee46ffc93991add83 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mac80211_hwsim.c

index 8f57ca969c9f47709c543fb7741b94cabe185b89..27224dc264133aebd95bff20a2e068e4c5066dba 100644 (file)
@@ -3241,7 +3241,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;
        }