Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 183B0C43381 for ; Tue, 19 Feb 2019 05:22:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1D7D2173C for ; Tue, 19 Feb 2019 05:22:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725770AbfBSFW3 (ORCPT ); Tue, 19 Feb 2019 00:22:29 -0500 Received: from mx57.baidu.com ([61.135.168.57]:12102 "EHLO tc-sys-mailedm02.tc.baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725730AbfBSFW3 (ORCPT ); Tue, 19 Feb 2019 00:22:29 -0500 X-Greylist: delayed 576 seconds by postgrey-1.27 at vger.kernel.org; Tue, 19 Feb 2019 00:22:28 EST Received: from localhost (cp01-cos-dev01.cp01.baidu.com [10.92.119.46]) by tc-sys-mailedm02.tc.baidu.com (Postfix) with ESMTP id E7F2F11C0056; Tue, 19 Feb 2019 13:12:40 +0800 (CST) From: Li RongQing To: johannes@sipsolutions.net, kvalo@codeaurora.org, linux-wireless@vger.kernel.org Subject: [PATCH] mac80211_hwsim::: propagate genlmsg_reply return code Date: Tue, 19 Feb 2019 13:12:40 +0800 Message-Id: <1550553160-18324-1-git-send-email-lirongqing@baidu.com> X-Mailer: git-send-email 1.7.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org genlmsg_reply can fail, so propagate its return code Signed-off-by: Li RongQing --- drivers/net/wireless/mac80211_hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.16.2