Skip to content

Commit bcef935

Browse files
lulu-github-namemstsirkin
authored andcommitted
vhost-vdpa: Fix the wrong input in config_cb
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 09b6add commit bcef935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vhost/vdpa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static long vhost_vdpa_set_config_call(struct vhost_vdpa *v, u32 __user *argp)
322322
struct eventfd_ctx *ctx;
323323

324324
cb.callback = vhost_vdpa_config_cb;
325-
cb.private = v->vdpa;
325+
cb.private = v;
326326
if (copy_from_user(&fd, argp, sizeof(fd)))
327327
return -EFAULT;
328328

0 commit comments

Comments
 (0)