Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2975158pxb; Tue, 12 Jan 2021 03:20:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPJev95ZKHitm0vQk2ypxxZLHBU5kEIUne+GdG0H7tcqvm01DGcLrbHV4og5Yfmgm2265O X-Received: by 2002:a17:907:389:: with SMTP id ss9mr2934729ejb.158.1610450400115; Tue, 12 Jan 2021 03:20:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610450400; cv=none; d=google.com; s=arc-20160816; b=jB8sdqkdFdgE35sBqRQr6psWcuZ8i2z2Mud2MExVGCMyPXqIaZQp+HKiJPxy/aKdEl YXpqAbAJQJi0szXRKXEq7JI1ciYM5I1MSMWt2NPz73rEVcXxk/US93VupJFwDy4Xo/8X 04lKgU7m1WRhMlvPZspaBs3xG3sGDxDxQaj2xsBKtUataRh5FIO2YuEFDNaz6hHceMxw OvGe2aRKEa5yOlncTDG6uUwkrIWmUttyPJZ2JF418adhKLzsKNmPYRzm6u+RLEBH8cMl Z8jx02vqK0v1lSFDJ4oK92qYRNHg2vkl+XYd0jrfsgVLeby/3WdSdQfeMaW3uYxpUHmM W5wA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=3tdKW3SLUhCLxVY2DOdCzA12uRd5TyP8aBW/+yPnNmQ=; b=EXhpGYJZMLkat+vHtBeWxapesNa149P/aF9nYxRzHEoaEtcRHudXO1oFsXCzhxCvzL A/DPE9AHuq/7ckOuIPMN2jsMG7+eAseekZnnU84cSCyZYRHK0XZ26X1MOud1DpW27GSh uCLkzBuLA8scQOYpW7L6y8WcDeayaigMofdZ2mO7D+iDyOWyItpZ8G93opoYMO0VfIr2 9UetzRY9XBNUDVGx0WQLR3ObF6L2tAe8LaGyl0Qzm9RqLTl8c0mK/mOdVsEngThUwzVC BbsZ8NkQXGwhsYnACWYqlr27DyNYTwEe6UZqh7+ibePj8atH4ykfl8MfQZ0q7Co9Nu2t bmWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JC3b0Qu6; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si205418ejf.3.2021.01.12.03.19.36; Tue, 12 Jan 2021 03:20:00 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=JC3b0Qu6; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733181AbhALFeS (ORCPT + 99 others); Tue, 12 Jan 2021 00:34:18 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:56270 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730636AbhALFeS (ORCPT ); Tue, 12 Jan 2021 00:34:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610429572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3tdKW3SLUhCLxVY2DOdCzA12uRd5TyP8aBW/+yPnNmQ=; b=JC3b0Qu6xa2OvgxlH/WzDq8muGMQmyxzpnYX1FiN6CsLanNxAwlvvUkoemuvqnPucNGdXM F/fkAfC/SuTZmJa05/6ZRVCF7n0NuHpyYvq3Wxwg50W1mph3O3E4KYT1qcMkTEYyObbeC8 X56lEbF76LgMxR1yHomaVb/Oq2rHS+w= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-585-qI6e3ArVMbCdtWuQePZw8Q-1; Tue, 12 Jan 2021 00:32:50 -0500 X-MC-Unique: qI6e3ArVMbCdtWuQePZw8Q-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D80291842140; Tue, 12 Jan 2021 05:32:48 +0000 (UTC) Received: from laptop.redhat.com (ovpn-12-95.pek2.redhat.com [10.72.12.95]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7E0B510016F6; Tue, 12 Jan 2021 05:32:42 +0000 (UTC) From: Cindy Lu To: lulu@redhat.com, jasowang@redhat.com, mst@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, lingshan.zhu@intel.com Cc: stable@vger.kernel.org Subject: [PATCH v2] vhost_vdpa: fix the problem in vhost_vdpa_set_config_call Date: Tue, 12 Jan 2021 13:32:27 +0800 Message-Id: <20210112053227.8574-1-lulu@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In vhost_vdpa_set_config_call, the cb.private should be vhost_vdpa. this cb.private will finally use in vhost_vdpa_config_cb as vhost_vdpa. Fix this issue. Signed-off-by: Cindy Lu --- drivers/vhost/vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index ef688c8c0e0e..3fbb9c1f49da 100644 --- a/drivers/vhost/vdpa.c +++ b/drivers/vhost/vdpa.c @@ -319,7 +319,7 @@ static long vhost_vdpa_set_config_call(struct vhost_vdpa *v, u32 __user *argp) 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; -- 2.21.3