ieee802154: hwsim: propagate genlmsg_reply return code
authorLi RongQing <lirongqing@baidu.com>
Tue, 19 Feb 2019 05:10:29 +0000 (13:10 +0800)
committerStefan Schmidt <stefan@datenfreihafen.org>
Wed, 13 Mar 2019 09:13:26 +0000 (10:13 +0100)
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>
drivers/net/ieee802154/mac802154_hwsim.c

index b6743f0..3b88846 100644 (file)
@@ -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;
        }