Message ID | 20210608175932.488126941@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp4004776jae; Tue, 8 Jun 2021 11:39:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTdQXDyuvQlHFi7hnM62+u38x6gwyptu3RwLgIIVplyi2E94DyDFrxyq/KM0ifQ7NojLqP X-Received: by 2002:aa7:d590:: with SMTP id r16mr27419058edq.355.1623177569315; Tue, 08 Jun 2021 11:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623177569; cv=none; d=google.com; s=arc-20160816; b=FsCD8R40Z4bfz7wJdVEtSqkg3wJGjGE+mCQxzXk+PxVIg5IvWgvTbMxUmBK56k8WiB V9/ylZzI2tj5PzdSrUYXrrwFcVtbemQix6W+3VfLgTvHRsZVrYRBhxZWwa2eJMmMrxvP WZhwzl8BwXmwT1g3KsYfL7WELliwKpYIsRI1gZUWI9Tiw4L3d0IkkmggjHWBlhEgkxi9 RxdFSPL3RV1YLreCtACGtyAljQi5UbGyOEy3CUZnPJVyCAnAc02q0lHti0osxThRCcUf aVVN54LRN3OSZ4BIBAjeA0MhgLVegA/ST3B/XdVKJo/NukWg7ky6rxsPSHCk9Nv0voVX PTRQ== 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=ZsaS2oOqVoUruYYk7O/0Z9gOoV+K9kc2noPFRXS0KbZtxlI9yS0rUse/pVYqhkp7pi vTVZqQ2Wi5ki6z1p2MSpIlO98CrgYy+pY5nbUKg7fuxwOK+1bCfUakqOKrAaYWZ7M2Fi i3Leg+aMMwyNM7F+Fn1UzAyr/abwQEKavCK8cGvWpnH4yrUC5P37Heion84kp06ytbGq lKv/2cu/yiEo7vp7ewEPXIVyT3CzKPWM0lii1s6HWlJ7V5STzw5vIL3/DL1MDWWUlHvz 8SPaqd2nXQzBxioEsZ6AujrDhc0FUHG5Lk/OdP+yADTDuE5BkxdIt+oXIMHOyZM127Tc AplA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KKSSlgIQ; 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 f26si395533ejl.276.2021.06.08.11.39.29; Tue, 08 Jun 2021 11:39:29 -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=KKSSlgIQ; 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 S234798AbhFHSkw (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Tue, 8 Jun 2021 14:40:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:37970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234017AbhFHSjC (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 8 Jun 2021 14:39:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F0F5E6141E; Tue, 8 Jun 2021 18:33:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177227; bh=D6ZSY6smbZX3GDr0IjSyAhQmxNP2xvB9l8kosypADrQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KKSSlgIQX0Cb2ZZzTO5maMAXBXFtpB9be4a6gQM0OKjBRYpvkfAhutoYom51OwL5p yE2nsfpc0A8LMxo5OaNp5aL0vQuIXHrwdH58y48YyLdGBkXLZP6dQSzxfEsrsVHj47 y5ni0/L9JKSj9jtK6aD6k0q0aBJjwT0azyYKzYD4= 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.19 06/58] vfio/pci: Fix error return code in vfio_ecap_init() Date: Tue, 8 Jun 2021 20:26:47 +0200 Message-Id: <20210608175932.488126941@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175932.263480586@linuxfoundation.org> References: <20210608175932.263480586@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; } }