Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp417205pxb; Wed, 29 Sep 2021 01:55:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9q3EjyXaak3NOkShMiwIfZUY5iulw6OIxREH9E2JXLNfXTL8U/exzXswUcHMLRphXBnSe X-Received: by 2002:a17:906:9b1:: with SMTP id q17mr11927696eje.546.1632905710651; Wed, 29 Sep 2021 01:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632905710; cv=none; d=google.com; s=arc-20160816; b=X5DUxDLBIiigYjJtZxANQyOedRIQ1fgIvCZl5AXC+MMJ8zr2B9i4VxjHqPWnRUs0oz SpNOv8Pebuu0Ex0TeTV8isgkM8z9TDxXllxBSVzrUAGLFr9pF5Ww5owjakzYcRb/Dp4l SX49wz+3qjEmpncymnfqfE7wlltvt7QULXP9biwZ4ORyGofgoWmuSS0z/rz4MMFqY/s2 YDzy15kHImI1U5Z3S2ySf5ereZZfoD/O4AwL/fM6K9jf2gng9n48ahHknGJhYpfzfEFB qvq+K61rFH4y7d6rDa0jvXg87FcSMIqHC2eHEMdE02VMm3tGvbC8StvsMyGNnqU63VJu R4Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2IuDph5pgXKhZLx55AOzdRIaR0YtM8hQePA5+y0Dae8=; b=xKAhcRFk+xIiQczMS/qZOgI8ydZ8ONWkl//dWW/ZTGOstb5kdf9yFCPPpVnjt0CACU 3Pjix7eWZehvFHlcxHsxv+c08H0V7/A36bGYRBNSa9XKMmRf3XuGEfDk4eJlNyaFYOfA 5/cqQi4f+7mDekdPRxN4OngmdlgSI0hQWr+BCxgkqcjVJ3ueDNgy+vORKiLpl1RW8cCW 8GEhG4S6EWcFpiqghP7lbeiE2MJxIf6VSHHnwZbUQvgjF4DiVS8g6YQJvzRi5SDkpF1Z bXXZ0oynZUssEOT5ZM1QW6JtMEPVR5zIpP/NyXwL5zbnNQaZneXOqAqiQtYivjqhJwz2 qfvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PY1sbZAk; 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 w25si2031987edq.341.2021.09.29.01.54.46; Wed, 29 Sep 2021 01:55:10 -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=PY1sbZAk; 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 S244904AbhI2Ixw (ORCPT + 99 others); Wed, 29 Sep 2021 04:53:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:40169 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244897AbhI2Ixv (ORCPT ); Wed, 29 Sep 2021 04:53:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632905530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2IuDph5pgXKhZLx55AOzdRIaR0YtM8hQePA5+y0Dae8=; b=PY1sbZAkUKZ2kHeGD2/NDQeHtIb2yfD988eNhXZ2F4X+FCCy/+7uVFYKh9uZsazFChywEQ tEDVhjcME3ZwTJgxFzD8RcqGXIBQCaXZh5YghnlpnadTKfHpjfRkGCr2MnfjLAuYsql8iP EW68D+Rs2s+U9KaAiUjc9pDcqE0x3Ko= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-253-uMwxyBWgMcuBZQfkDYTaMQ-1; Wed, 29 Sep 2021 04:52:08 -0400 X-MC-Unique: uMwxyBWgMcuBZQfkDYTaMQ-1 Received: by mail-ed1-f71.google.com with SMTP id e7-20020a50d4c7000000b003d871ecccd8so1628670edj.18 for ; Wed, 29 Sep 2021 01:52:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2IuDph5pgXKhZLx55AOzdRIaR0YtM8hQePA5+y0Dae8=; b=Oiqkps0Pf0RFxkINAEGkk65GT1ay1410lwCLkPILQj9EyoxfDhP5v+WUqpxA37n5pb A1TD7jbpu1AHdENHk3tHzOnyQqbWNlUopvpkEKnYCTVTmemkj1eP/zIe7D3Sg8ntDhL9 0mNKFb0o6ZvLtDlgshvmm+LUieaR28pW+5aNjj+vrB2wMRhEnV7ExUb7Xu2v0iRWRMjg JMl/YHyBzcMIQF0VSHc0oJ2bEm0PkWKEUpkVqk0eMfZkLyftua+QUtqitTJnyTi2LWB8 qVRzLBhf/2Qvvex73qapcIK6RH1+mEIYBsoIsntzgDURTLPx5ch7nbcYe5O4kL0+fHYd XeUQ== X-Gm-Message-State: AOAM531wO6vO53qlOnL/fKpsnNAdXsK8RV5KyK4esKpZc/l9KM23OZn7 1ylr9xKY2fjVzc0g/eK5BkE21mL+EdfdvnhNzuEhtOTjyy3Y6N/In0tcE5gQkjMxTQRgEfWCPuM cMKIkj2ZovgZ/wHU/TJtVcXBM37BqvpVL1zVMbzTb X-Received: by 2002:a17:906:840f:: with SMTP id n15mr12381701ejx.336.1632905527363; Wed, 29 Sep 2021 01:52:07 -0700 (PDT) X-Received: by 2002:a17:906:840f:: with SMTP id n15mr12381683ejx.336.1632905527171; Wed, 29 Sep 2021 01:52:07 -0700 (PDT) MIME-Version: 1.0 References: <20210929075437.12985-1-lulu@redhat.com> <20210929043142-mutt-send-email-mst@kernel.org> In-Reply-To: <20210929043142-mutt-send-email-mst@kernel.org> From: Cindy Lu Date: Wed, 29 Sep 2021 16:51:29 +0800 Message-ID: Subject: Re: [PATCH] vhost-vdpa:fix the worng input in config_cb To: "Michael S. Tsirkin" Cc: Jason Wang , kvm@vger.kernel.org, virtualization , netdev@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 4:32 PM Michael S. Tsirkin wrote: > > On Wed, Sep 29, 2021 at 03:54:37PM +0800, Cindy Lu wrote: > > 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 > > Maybe add > > Fixes: 776f395004d8 ("vhost_vdpa: Support config interrupt in vdpa") > > and fix typos in the commit log. > thanks Michael, I will post a new version > > --- > > 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 >