Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp380417pxb; Wed, 29 Sep 2021 01:07:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4FDBuKhI4tJF/mEBcwm1DlflQzSAhUQarKVmf4LasRHyxhkz7aCrhJ3EEm0AN7J69iO1O X-Received: by 2002:a65:64d7:: with SMTP id t23mr8383735pgv.237.1632902827880; Wed, 29 Sep 2021 01:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632902827; cv=none; d=google.com; s=arc-20160816; b=Hl8OkMNd0eJlWU0jZ3rHmaX0vWK9+JECQJL6iOgtTwBgeKHC0WrUpXFrg6t/v7uT7z rVFerr5uu1vxHWRIFST+2yjs+5Lkc7+ROso44wVH2i0zg21X7EPi3aV+6AiKT4WddaJd uNwtY5uZh26SqeVwukGJk5kVTShUvMXQjPG5JLDZQLhhqRnDnu8pTIb6NYcyyXUDekNw DXTfRuYdvRoIxd9eJRy929UDs8sMmPNS/fDAkEjt87evltXVUGEqDVWPMukXVESH9QIE dyBguyzw4V8D6lZ9fZOxyDUX20rwjstK5fpKReurvm94LYrTmz9U8fJRGxQL4G9JfY7B 9qvg== 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:to:from:dkim-signature; bh=80pWgN3KKsrMm8H11ftmkOTPTDACzxOkzP/ByHdpMSI=; b=SYE/6GMNK4kIR/dGm3/2zq0YSAE1T7fgZ2d0jpPHkN1SSitOi/zQH9I2l4G991L+dh b5UtiqmAX37wnjeyS0jJ8/UKuxWzOYOdf7hxYtnmztY/8Qbo32nAU1xgNm8KuVbGDv6G vJ0r6DarwPZBYKVNpCzDwxmC+i3mIWqgDQSoguQaQrIugCiOKT9GxlRB5LUlsM7jyyjT VMuKTaGzp3jpfuYpVnFfK4T/dBbaOv6FnIOhQc+ZeVPw9kRGeN65ThJhr1LxD8ShTWfD 7r7Q49XT5L3iYf9Qltl59Kx5Y2PWtBIJ3fHog6EsZQR750R59wRjYbwvnaI+tZAoDtCl NKIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UgxkV29E; 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 d12si929948pjr.25.2021.09.29.01.06.54; Wed, 29 Sep 2021 01:07:07 -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=@redhat.com header.s=mimecast20190719 header.b=UgxkV29E; 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 S244504AbhI2H7c (ORCPT + 99 others); Wed, 29 Sep 2021 03:59:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:31610 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244268AbhI2H72 (ORCPT ); Wed, 29 Sep 2021 03:59:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632902267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=80pWgN3KKsrMm8H11ftmkOTPTDACzxOkzP/ByHdpMSI=; b=UgxkV29EIqGQwAVn9hF8g82oEF32gL0UCasjnCRkuonmK2c2+4gDn6jD4hzo1QMPXty+44 mOpvA24z5t7GB/ULT5jPuCLmeeYzbrG25U3Nibkcf4F3XZUq0L5eup0QrXhel6EGGlFRCg nFJunFA8TsM4OYopPRmz8kgV8yQENOQ= 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-447-UCm1cZDQPwK7iKF0Lnxicw-1; Wed, 29 Sep 2021 03:57:43 -0400 X-MC-Unique: UCm1cZDQPwK7iKF0Lnxicw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7B94684A5E0; Wed, 29 Sep 2021 07:57:42 +0000 (UTC) Received: from laptop.redhat.com (ovpn-13-131.pek2.redhat.com [10.72.13.131]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2E2F060583; Wed, 29 Sep 2021 07:57:25 +0000 (UTC) From: Cindy Lu To: lulu@redhat.com, mst@redhat.com, jasowang@redhat.com, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] vhost-vdpa:fix the worng input in config_cb Date: Wed, 29 Sep 2021 15:54:37 +0800 Message-Id: <20210929075437.12985-1-lulu@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the worng input in for config_cb, in function vhost_vdpa_config_cb, the input cb.private was used as struct vhost_vdpa, So the inuput was worng here, 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 942666425a45..e532cbe3d2f7 100644 --- a/drivers/vhost/vdpa.c +++ b/drivers/vhost/vdpa.c @@ -322,7 +322,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