Commit 24a46cad authored by Li RongQing's avatar Li RongQing Committed by Greg Kroah-Hartman

ieee802154: hwsim: propagate genlmsg_reply return code

[ Upstream commit 19b39a25 ]

genlmsg_reply can fail, so propagate its return code
Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: default avatarSasha Levin (Microsoft) <sashal@kernel.org>
parent f722b778
...@@ -332,7 +332,7 @@ static int hwsim_get_radio_nl(struct sk_buff *msg, struct genl_info *info) ...@@ -332,7 +332,7 @@ static int hwsim_get_radio_nl(struct sk_buff *msg, struct genl_info *info)
goto out_err; goto out_err;
} }
genlmsg_reply(skb, info); res = genlmsg_reply(skb, info);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment