Message ID | 20210608175930.622660139@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3996364jae; Tue, 8 Jun 2021 11:32:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/PSBHxEPy5bAA8aiBtY/Yz98ZGFS5xGB+spg6qn9tGzJoJ3R0naEO5qFT5qH1skjGSwy6 X-Received: by 2002:a05:6402:8d4:: with SMTP id d20mr26885026edz.117.1623177128037; Tue, 08 Jun 2021 11:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623177128; cv=none; d=google.com; s=arc-20160816; b=bUNF5Qs7aC/XPyFzRmOcbo94n7yG1Lrex/Twx0MqOdPBDGf1N0b83BBSm3V+0fcuY6 wTrev1SkzmbxIVz28/Ba3x5SC7TrVHym+/3WkmkKnh6mvyCU9X7+boosVCm959j3ZsBI atpas6dGAIGwiy7racpU5k/rNmfYa9fDtO09T6X5uP58YCcH7BS+dtmEdnEUCdxNSvsC zHP+YM+mnE37o0HhhZ2uIKcPmx8Fyzh0L93v4KbRtQGm+i+haMKBVQXt4hXUUQzYFQba RSiPc2HSzj3T0YidsmsYPosP2skqojzpn55Mn+Nfvj46uoyLh3ByUb7G9233c8c5RYQ/ M1eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hWF4uawJ4ZvzhH27TvoG2KX1RSmlzRe82G3VF1U1dBc=; b=rhGzqf21aWOU73b0gLO4LSZqUTHs2kHaemeFWW1mHiC0i6fv+nPF6hT9txB2+UL/1w 6QkO5e1U0ybpHfJUvctgw3eQaMUcsWuaUsF9wSAaFug6hR3tweaapiz1QSJDKokzvE0T 9598CHy2dEFn2buVFLUJZk0zryAFD+mce5TGUQsfoI6ccFtGFUvCmOQaML1EDqcANPnW flw68JnnkBjaZRl9hpTxaqW1RbhZMAxiAguztppOrYjViFS3/FgCffqxd+LUC8Tr08Kd MMQnjoJMsnRmb4KV9gaVBR/0T8bQ+IerHi6jQRlrUcHdG6KSw+RSgdpdx3yEUB5y16e3 H6BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N5JqNhQD; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly22si337502ejb.565.2021.06.08.11.32.07; Tue, 08 Jun 2021 11:32:08 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N5JqNhQD; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234696AbhFHSd6 (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Tue, 8 Jun 2021 14:33:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:57386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234328AbhFHScz (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 8 Jun 2021 14:32:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1F4BD613DB; Tue, 8 Jun 2021 18:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177051; bh=D6ZSY6smbZX3GDr0IjSyAhQmxNP2xvB9l8kosypADrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N5JqNhQDp6iDGmlb0HN700qJf5bS2qollqEfZ4+2mtemZ3PvrC/FsGJQIClygg+7P x56LIblAc/UgFVJYyA8MKkW40z27wJg3tG9PNw+a5QRQozsaYoT4OUN+J50JGiwp3C GZr0FXd/jRZzhBLIiCHi1RHdx4JL4liW5ABP12M4= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Hulk Robot <hulkci@huawei.com>, Zhen Lei <thunder.leizhen@huawei.com>, Max Gurtovoy <mgurtovoy@nvidia.com>, Alex Williamson <alex.williamson@redhat.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.14 04/47] vfio/pci: Fix error return code in vfio_ecap_init() Date: Tue, 8 Jun 2021 20:26:47 +0200 Message-Id: <20210608175930.622660139@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175930.477274100@linuxfoundation.org> References: <20210608175930.477274100@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c index a1a26465d224..86e917f1cc21 100644 --- a/drivers/vfio/pci/vfio_pci_config.c +++ b/drivers/vfio/pci/vfio_pci_config.c @@ -1579,7 +1579,7 @@ static int vfio_ecap_init(struct vfio_pci_device *vdev) if (len == 0xFF) { len = vfio_ext_cap_len(vdev, ecap, epos); if (len < 0) - return ret; + return len; } }