Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2974412pxb; Tue, 12 Jan 2021 03:18:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWb3rmMeIZMOxcOoTb7Vgj+srBa7SPPpmMqZYYlcFiq43CDOMXO594SDP9yJ6UtwLvlQWx X-Received: by 2002:aa7:c3c2:: with SMTP id l2mr2912977edr.15.1610450322970; Tue, 12 Jan 2021 03:18:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610450322; cv=none; d=google.com; s=arc-20160816; b=N+VDfb9oSRoc6FGiuNq8XSC48R+ftDjy4Ha1Cob52faP4Um/KN1YjQZ1wNsqxCv8C7 klvsg0aNCw0ocjTgZFt4gR/EZQYpAkbby7X1ApFgBugHSLNip0CsYbEZkCauKlXjQd3Y s5LpTrN9uW+QvD5XaxEycNYMtbT1SsZzOzqk8YkkGqqS7K2QO1XbVohBrjquk0iIMwpl iR0GFjek/5OSHW3p9atR1uZKBhybulqpOC6JqB3eSbu5zZ8J6SMr4bJAWgALTLpw+MqT GqxzZrXnZjT1QTPZ1NYHut7Nn9xWbxvZ5AeGLxv9Ti1wBWOUMNBz7dkKjDax9nUib6Ir F35g== 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=VH1DnjM7C34WcJYdUsZY2fXbHo1byMf7LCcAsLj7Uv8=; b=eMKgIHRNKWcbkq/+3//m3l7phxI1/NJXRDb2hNQCiRMPeFKGgAgCjXLW+UopcsZ7u0 J/ewKUStxS4+YAUizaxN/jOkGAaghd+/1lDpNgNzPIJMes1hHB+M3BsuOwNWdfCMUNeY c3DtlGSQH+j+FSNt16wcOqHm11u+/h5fQedqy9/WBm1aGedlgdK4GAuehP+CjGLmdwig T5U1yRwHIuLMvszRAZKWlw3vbqF5U0moOhYkNdJSSBU77EMano4SOtplhraAPV08pDD+ Z855UeuDcoO+Yng1rkmN+H4RihZ2sLASYg5deUa+IA5BTOCVaPC7iMcvMmShDGQZCCBK s1Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hLvRBtZu; 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 q18si999311ejt.469.2021.01.12.03.18.19; Tue, 12 Jan 2021 03:18:42 -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=hLvRBtZu; 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 S2388604AbhALFiK (ORCPT + 99 others); Tue, 12 Jan 2021 00:38:10 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:46391 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726483AbhALFiK (ORCPT ); Tue, 12 Jan 2021 00:38:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610429804; 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=VH1DnjM7C34WcJYdUsZY2fXbHo1byMf7LCcAsLj7Uv8=; b=hLvRBtZuSI4vHpO2s3O6aC8oAOEJf6AB1MH+BX1e6ZWerKvR1l9qMNMdtBQXf7nTqXlByM zSCnoInIZNvJBDJvk4xEyQATEW6Wods3rBK31kqW9cmSL0z5SZkgPulex4+mB+Tx9PdZKs EKsDzKzC4yqrHplD6TgpYwZrcS48trs= 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-268-l5RWiJr-MDS2JphWcs2S1g-1; Tue, 12 Jan 2021 00:36:40 -0500 X-MC-Unique: l5RWiJr-MDS2JphWcs2S1g-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3B67C802B40; Tue, 12 Jan 2021 05:36:39 +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 97A9B60BE2; Tue, 12 Jan 2021 05:36:32 +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 v3] vhost_vdpa: fix the problem in vhost_vdpa_set_config_call Date: Tue, 12 Jan 2021 13:36:29 +0800 Message-Id: <20210112053629.9853-1-lulu@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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. Fixes: 776f395004d82 ("vhost_vdpa: Support config interrupt in vdpa") Acked-by: Jason Wang 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