summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2019-02-19 08:10:29 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-04 10:20:11 +0300
commit24a46cad0e180a2d912988cd63f3931909744a57 (patch)
tree8e93e5a6824c236682a5e45deec6283d51cac16a
parentf722b7789afa78e30b11b86e647b9a34c4bfe19e (diff)
downloadlinux-24a46cad0e180a2d912988cd63f3931909744a57.tar.xz
ieee802154: hwsim: propagate genlmsg_reply return code
[ Upstream commit 19b39a25388e71390e059906c979f87be4ef0c71 ] genlmsg_reply can fail, so propagate its return code Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org> Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
-rw-r--r--drivers/net/ieee802154/mac802154_hwsim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/mac802154_hwsim.c b/drivers/net/ieee802154/mac802154_hwsim.c
index 624bff4d3636..f1ed1744801c 100644
--- a/drivers/net/ieee802154/mac802154_hwsim.c
+++ b/drivers/net/ieee802154/mac802154_hwsim.c
@@ -332,7 +332,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;
}