diff options
author | Cindy Lu <lulu@redhat.com> | 2021-09-29 17:09:33 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-20 11:45:04 +0200 |
commit | ba39f55952a217b83311467c0b911126dad9b37f (patch) | |
tree | e58dd4a07e92c3cfef181e00f4b262d7761541d9 | |
parent | 84e0f2fc662e8f60688a015e7bf89e57522281c8 (diff) | |
download | linux-stable-ba39f55952a217b83311467c0b911126dad9b37f.tar.gz linux-stable-ba39f55952a217b83311467c0b911126dad9b37f.tar.bz2 linux-stable-ba39f55952a217b83311467c0b911126dad9b37f.zip |
vhost-vdpa: Fix the wrong input in config_cb
commit bcef9356fc2e1302daf373c83c826aa27954d128 upstream.
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 <lulu@redhat.com>
Link: https://lore.kernel.org/r/20210929090933.20465-1-lulu@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/vhost/vdpa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index c4d53ff06bf8..fdeb20f2f174 100644 --- a/drivers/vhost/vdpa.c +++ b/drivers/vhost/vdpa.c @@ -325,7 +325,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; |