Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3033746pxb; Mon, 18 Oct 2021 07:01:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTgsOikstEpxsH5yMm4FhFKZAnWceyQVNBFMl2SB+6VIJHLMfwOiJLv0QEb3K4Pv+LnFto X-Received: by 2002:a17:90a:6542:: with SMTP id f2mr43367130pjs.159.1634565684261; Mon, 18 Oct 2021 07:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565684; cv=none; d=google.com; s=arc-20160816; b=kzpOvM35fDlfLzSEb2dG22Xx7Ku2ep6KEnGoedrsuqmekGj4BZiacR7C3nDoKIXwkX aG4GgI/RvGjIY+rLOXQk2YOou276poYgN+pN37jKaGI+irhLCXn/1Y4VEklM27tI32Ka ZqbHGyNYbvhyHe4uzgAiTIyQEznT62jdbmFH1rJ74uLZMNtHVD6SAA+sQYmik+aiFnoX uN9XUnS4OkWlsxl4cDQEZIl9iYsjZAxsEnIjShpm/M2/nBN61L1Nu/SNnsi2uRRjiDL8 wbtINDBlQri2xt0jv4/Qylz1K3HnwH3Oe3nkD0pGXpIfFVHxw7NKfqzus6u+UfSIJiC+ 9eUw== 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=eZyW9JoppR4Wsyke2y+vJt43k0DlbG1/eoBo0kVRo8I=; b=zVZ1Ehq8aA9HXcO4Mqr1giMvDMWnoXncxir8muVlcs+cnWeasUCZ0qh8bZG9Y1jQfY pSGInBZoODJ3TlbymFEGcGZTjVX7ABXnAbmJA14VigDK5xeCTVigqoweOYHxNVonHJ1S PnYaw+OnVUYdNBgPvxyuZCrKDawlLOENmhVcd4AzR5rNjd9F/l2VKys25IrOIXAQuVd3 4DW34IppgNqOHpO5X7RErLOJPlbBap+xiuz62EeMe0L6Ud66PdRVK8QYKpSsQEFMRJQl KsdvG9qWUBYl24KK8A105+sAR6Gi0jJ2UUpnp6AMyFPh/QaZBE1L/KVxWvWeVSimcAwK /MKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2rfw19Wr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 185si19570502pgj.514.2021.10.18.07.01.10; Mon, 18 Oct 2021 07:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=2rfw19Wr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S233624AbhJROBH (ORCPT + 99 others); Mon, 18 Oct 2021 10:01:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:39544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231775AbhJRN7R (ORCPT ); Mon, 18 Oct 2021 09:59:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CAF6461458; Mon, 18 Oct 2021 13:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564502; bh=zcbKeoz81sQDHvnq/SiQbn4QYyl4Aqi3Pgn42io0wuQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2rfw19Wrz+A40n5M51S60C+RlTnc8LFBsO192H5RyY3WfOKevtuNcsy1rRHZR47QO 52ER+AZV56/0wReB4F6Lc+VrDYQ8fXAwWyZDOO8RaQFGw+uNF8VXzoxEqoExYVSaCM mO7eQ9HSV3t5pvAoA6fuqZb0Lu6YwogpdPu8Mqz0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cindy Lu , "Michael S. Tsirkin" Subject: [PATCH 5.14 114/151] vhost-vdpa: Fix the wrong input in config_cb Date: Mon, 18 Oct 2021 15:24:53 +0200 Message-Id: <20211018132344.384968061@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@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: X-Mailing-List: linux-kernel@vger.kernel.org From: Cindy Lu commit bcef9356fc2e1302daf373c83c826aa27954d128 upstream. Fix the wrong input in for config_cb. In function vhost_vdpa_config_cb, the input cb.private was used as struct vhost_vdpa, so the input was wrong here, fix this issue Fixes: 776f395004d8 ("vhost_vdpa: Support config interrupt in vdpa") Signed-off-by: Cindy Lu Link: https://lore.kernel.org/r/20210929090933.20465-1-lulu@redhat.com Signed-off-by: Michael S. Tsirkin Signed-off-by: Greg Kroah-Hartman --- drivers/vhost/vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/vhost/vdpa.c +++ b/drivers/vhost/vdpa.c @@ -316,7 +316,7 @@ static long vhost_vdpa_set_config_call(s struct eventfd_ctx *ctx; cb.callback = vhost_vdpa_config_cb; - cb.private = v->vdpa; + cb.private = v; if (copy_from_user(&fd, argp, sizeof(fd))) return -EFAULT;