diff options
author | Li RongQing <lirongqing@baidu.com> | 2019-02-19 06:10:29 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2019-03-13 10:13:26 +0100 |
commit | 19b39a25388e71390e059906c979f87be4ef0c71 (patch) | |
tree | edf44d4a70f69b13e596a0c9cd8de008f2826e41 /drivers/net/ieee802154 | |
parent | net: ieee802154: fix a potential NULL pointer dereference (diff) | |
download | linux-19b39a25388e71390e059906c979f87be4ef0c71.tar.xz linux-19b39a25388e71390e059906c979f87be4ef0c71.zip |
ieee802154: hwsim: propagate genlmsg_reply return code
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>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r-- | drivers/net/ieee802154/mac802154_hwsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/mac802154_hwsim.c b/drivers/net/ieee802154/mac802154_hwsim.c index b6743f03dce0..3b88846de31b 100644 --- a/drivers/net/ieee802154/mac802154_hwsim.c +++ b/drivers/net/ieee802154/mac802154_hwsim.c @@ -324,7 +324,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; } |