Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp428873pxb; Wed, 29 Sep 2021 02:11:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6LnVFJqnVyQqu2RlgsS9gxe+Rv31Q+fBFzkLuziC52/a+EYT+EubAXcuEW9rflOdwRRTW X-Received: by 2002:a63:f145:: with SMTP id o5mr8760976pgk.273.1632906677337; Wed, 29 Sep 2021 02:11:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632906677; cv=none; d=google.com; s=arc-20160816; b=s9M4xnpiWrl4AFMWIFYXsCn6ghevQojZI6WsaOmbFSyWPUQtGsEQTBSNYXwoqiCcnt kcxlHEHh6WlPqj7cUDYpJKQxFUlwJ7fZfLkDNhxBhEMfqU+6w0DW4vV56UygE/rrimR2 nRq6eHxOMYrOUC3meMV83roenLARd7UB+jZKeHKqpYgbGz6a1mHqvr/PuXzdXPzVxIJj xGyXbcOfbrYx7+J3bhUz4OACuyTx8CqlCvLmRsI9+n6575o6Qjv9sk4bzKrSIBXPpAwa R3dgw8So+lxay1+2omE2dII8H9VMGfZQsuDZsyLcavQaSjlNowJx2N1G0CvpoW2+HjtQ Ndsw== 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=RcOVP83sWDrBqrCNf2sVDncAktEVO2ePzZXObxtehhI=; b=oyi3NqV9PBGsTE5XKZEVHz03aTD7NNz2wKY5L0GJc5g2lVYV19M4UOHCKBLvPfo/k7 COHiR5jILQ5A0zbgH0TVNMzZ6iz+8kUuc9GQp8v3LqoFZ/2qKIDxKNBg4RkSfoSDEzQi l5p68GOeUTASB2uO+hz/G6UuQXKMMJhDZw55bTjIHI8QiPQwK5pgriUOenvUwYfFZ1KO 3FNv6l0j5moZDzwNagpYinC+1hYkPSbdc6Y0U+/NRlOTwAJs+LkttIiz+XrJGWIhesWM Ggpk2W6/B028Vp7InbUDuwelvFijZ5H62sDwbiZFfx6JvOegk8IkvPyCFqeLRW5q9qoE JM8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dnyGG0+s; 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 c8si2154719pgq.513.2021.09.29.02.11.02; Wed, 29 Sep 2021 02:11:17 -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=dnyGG0+s; 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 S244975AbhI2JLd (ORCPT + 99 others); Wed, 29 Sep 2021 05:11:33 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43976 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244898AbhI2JLc (ORCPT ); Wed, 29 Sep 2021 05:11:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632906591; 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=RcOVP83sWDrBqrCNf2sVDncAktEVO2ePzZXObxtehhI=; b=dnyGG0+s7+X5hL26YyXKVDaC74Lh2WJSWAzd+qW7xF7jOIIs/ORhGpCsmfojBhAKWRfN20 oKHZc7pz1Eu6s4eqNUSZrB7lhJJ3P8MJ/2QDy7QVc4mBnFPT5TTWqFIXGAJmzb1ot4yrDq rzwXQ5bJcTdfsCeFWJOsg/ITfWyh8YQ= 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-543-0oOI8YVTOLiPmhnXhMqRlA-1; Wed, 29 Sep 2021 05:09:50 -0400 X-MC-Unique: 0oOI8YVTOLiPmhnXhMqRlA-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 01023802947; Wed, 29 Sep 2021 09:09:49 +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 D41F960C9F; Wed, 29 Sep 2021 09:09:36 +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 v2] vhost-vdpa: Fix the wrong input in config_cb Date: Wed, 29 Sep 2021 17:09:33 +0800 Message-Id: <20210929090933.20465-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 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 --- 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