diff mbox series

mac80211_hwsim::: propagate genlmsg_reply return code

Message ID 1550553160-18324-1-git-send-email-lirongqing@baidu.com (mailing list archive)
State Accepted
Commit b97c9cb91d5101507ac8deb70e91d78ff3156ef3
Delegated to: Johannes Berg
Headers show
Series mac80211_hwsim::: propagate genlmsg_reply return code | expand

Commit Message

Li RongQing Feb. 19, 2019, 5:12 a.m. UTC
genlmsg_reply can fail, so propagate its return code

Signed-off-by: Li RongQing <lirongqing@baidu.com>
---
 drivers/net/wireless/mac80211_hwsim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Johannes Berg Feb. 22, 2019, 12:26 p.m. UTC | #1
Li RongQing <lirongqing@baidu.com> wrote:

> genlmsg_reply can fail, so propagate its return code
> 
> Signed-off-by: Li RongQing <lirongqing@baidu.com>

Patch applied to wireless.git, thanks.

b97c9cb91d51 (HEAD -> mac80211) mac80211_hwsim::: propagate genlmsg_reply return code
diff mbox series

Patch

diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 320edcac4699..6359053bd0c7 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -3554,7 +3554,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;
 	}