Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3243585imc; Wed, 13 Mar 2019 12:32:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCn/BQLu0LhZ3ngHCIhCSsK2QLCyey5yvGwSo4CD3Jk5hYmI5kCyzGgFIfJ46plC2Pw1ou X-Received: by 2002:a62:e11a:: with SMTP id q26mr45081869pfh.187.1552505577197; Wed, 13 Mar 2019 12:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552505577; cv=none; d=google.com; s=arc-20160816; b=D2OnXkZv/aCSxarPVNZEVFXCZxuf5LiFdF9Hn5SspItQoF+4PRtlhOk9nOOUdR4pku C0iZomlsL61fTzGJ5o8WEIt1I4ZVhddD/1KlvaGpFv95iiSHsn6PbZm53omoQY/l3PEP YpbGX8sv4xVIJdIFSmjiTlbnrDbU8GO1SP549TsozKScGiJtdo8Zc+SwpSxe+v1R0U2h mQPkuuadHWdoi+HTIl9h8AsapmpWTsBSqmj0ifemeK2wqWfbNi+3p5QYkE06HhdD7mr4 LB8djTWFMAVBetAmV/JI+TR2COd6GwGnkqJTvzoej/+1+7KNGzNLNIBwlxBXIQ6WTQbO 4vWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D2D59StQrVIM3Ee3H74ioF37KxOsZY+nJo+5wX5qR1k=; b=JP6Cdf1PIvAO44UI2kjxKTDAnqlN6rPPxQoUoALdXaZAQMekklk/FLuMUXxmMz5ntG jbexN1ZsH9y15oU8ADLsXOSCLwSlimS+/tzCf1CIuWvcVs/fqaYiiqIBLWcU+4+k6Dsp ko/HCQ7To6YobhIheZBIwhGSlIvJFbI5o8TWcTkJjxbYTErCyonOrHeBPrtKzhZHseie ZEkdzqRNgkU8mQ564Yw2ZI6vToCUkENiaFy8ug3SCiE6qQlDZAirnysOD0sTpY2wANNU qLcz9lfEiL3U16XiBlqL436pwV9GoX4QWofxCZUm9FTWhetGE8tig71+75YQbNlqbK2p FVAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1dKj9SAI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7si10278613pgp.566.2019.03.13.12.32.41; Wed, 13 Mar 2019 12:32:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1dKj9SAI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728099AbfCMTal (ORCPT + 99 others); Wed, 13 Mar 2019 15:30:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:43008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726639AbfCMTMZ (ORCPT ); Wed, 13 Mar 2019 15:12:25 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9DC49213A2; Wed, 13 Mar 2019 19:12:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552504345; bh=c2HUv8/0cgEKg+1TA/chHORLaO1npFiBLFmYD92ruCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1dKj9SAIACvr/HalmXN03y4sKcko7QTSuKH3jCIbysez1alC0uMgt3T95NIjinBW8 Ug+b6bxLTsn+Tawku6tZ61GjwxU54RFrObwDiqyRnM0zbCdmPAPQ2h+jLmpbCl2R+K dZmT0uJyAyLTxrqm8RwwiM0U5v4TaiUTrXrKXt8s= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Li RongQing , Johannes Berg , Sasha Levin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 4.20 50/60] mac80211_hwsim: propagate genlmsg_reply return code Date: Wed, 13 Mar 2019 15:10:11 -0400 Message-Id: <20190313191021.158171-50-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190313191021.158171-1-sashal@kernel.org> References: <20190313191021.158171-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Li RongQing [ Upstream commit 17407715240456448e4989bee46ffc93991add83 ] genlmsg_reply can fail, so propagate its return code Signed-off-by: Li RongQing Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- 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 d1464e3e1be2..47a4610e7a5b 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -3449,7 +3449,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.19.1