Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6015310ybc; Wed, 27 Nov 2019 13:26:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwYs8VeUgcto9yPpCcj1U5N1RVX+GDlagZqsDeTh6QzhvjhCUtYt36D6wOnXLdz1MfqzeFj X-Received: by 2002:a05:6402:886:: with SMTP id e6mr14854718edy.46.1574889976736; Wed, 27 Nov 2019 13:26:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574889976; cv=none; d=google.com; s=arc-20160816; b=mB3xK2CaDytau7BMSa88nPCm4DvfvNtC+ZVnGEcNK3kWUcYu5rVOOQjLinDEep30lm 0+hOJib1UZzoYx4ACvt6hYcC2sL9N5DsZjzHWmspt9LQ0eKXGuQUVo7/tGGaMBCAQghM rjl+2OkknZqgPjCh4oCCUbNJ+vWjaPKYxAkbHZ5GBNLV9MsbSu2tRfa+0Bf8gIJhRD6K 778xmLQI5RntCQPqd6VMCVanLNiAL6D1ydwM6F+CILggjMaIweDKFDiPrvC1VO0HXOkR SoZlLEQiQNr5W3k8RB9LzlRfjdq1HpUo5MKyec87rqokxaNT7sXxqC0ij+XNSMxeie52 uoAA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YgK1jJ2ZLzXZVwQPjuFPttX1UWm9J4shx093l2qbsWA=; b=HK7JoLqyF6dtMyVrFOxSR0MulEf3D/KV/Qn5zTYttyc95KiYlXQXBxzxYC2EfZcs+r N5OYMsN2nEW75ErybxQJx9tnM/3sj3dAaUeKDvu8emvnMXUtHekCG26mBwdtho/uIqHu SaDRbt2OZ30OuDHQFz501YvWaxgQGYdOsZyQCvw6XwWIezVu/6rDGCVirO+1d4OmRgHd 8v6brzNWL7lr/PslOqe8vlQDKt0A+NM/MsV5oWyHS2KmqcXmedCIUfvCju3pcsrINuDI ZM4Wl9OYiMYfhxrYEovBVT6LMQuDpfnlBMywjQlVPRt6gW5qGMtKCJrhsZQ3thwjnX6c BLug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="rejjv7/S"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si10037599eji.130.2019.11.27.13.25.52; Wed, 27 Nov 2019 13:26:16 -0800 (PST) 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="rejjv7/S"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732442AbfK0VXk (ORCPT + 99 others); Wed, 27 Nov 2019 16:23:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:57738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732123AbfK0VER (ORCPT ); Wed, 27 Nov 2019 16:04:17 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EE26A215E5; Wed, 27 Nov 2019 21:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888657; bh=0/v6sglde6ETDy/cKQP12kRzT3Ku99PNjbTwDK6rlkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rejjv7/Sys0W52Vc8Uz//7pcRxEUAttuzTZptIODEr8rbJ5eudqnPqGFe7i0TP/2X U/rUlU3rmLDW1RrUJ8JWb/ypnpPLku8AbI9VFfzFmXx7m3PatxeGIQ83jJ36vh6w6O o07TwSD7Zgugf4Fk/yL8X9hQC6ly/nSaLJXEGTAg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Kalle Valo , Sasha Levin Subject: [PATCH 4.19 218/306] wlcore: Fix the return value in case of error in wlcore_vendor_cmd_smart_config_start() Date: Wed, 27 Nov 2019 21:31:08 +0100 Message-Id: <20191127203130.994561164@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit 3419348a97bcc256238101129d69b600ceb5cc70 ] We return 0 unconditionally at the end of 'wlcore_vendor_cmd_smart_config_start()'. However, 'ret' is set to some error codes in several error handling paths and we already return some error codes at the beginning of the function. Return 'ret' instead to propagate the error code. Fixes: 80ff8063e87c ("wlcore: handle smart config vendor commands") Signed-off-by: Christophe JAILLET Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/ti/wlcore/vendor_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ti/wlcore/vendor_cmd.c b/drivers/net/wireless/ti/wlcore/vendor_cmd.c index dbe78d8491eff..7f34ec077ee57 100644 --- a/drivers/net/wireless/ti/wlcore/vendor_cmd.c +++ b/drivers/net/wireless/ti/wlcore/vendor_cmd.c @@ -70,7 +70,7 @@ wlcore_vendor_cmd_smart_config_start(struct wiphy *wiphy, out: mutex_unlock(&wl->mutex); - return 0; + return ret; } static int -- 2.20.1