Skip to content

Commit

Permalink
vhost-vdpa: Fix the wrong input in config_cb
Browse files Browse the repository at this point in the history
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: 776f395 ("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>
  • Loading branch information
Cindy Lu authored and Michael S. Tsirkin committed Oct 13, 2021
1 parent 09b6add commit bcef935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vhost/vdpa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit bcef935

Please sign in to comment.