vhost-vdpa: Fix the wrong input in config_cb
Subsystems (4)
PATCH v2 1/1 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 776f395004d8 ("vhost_vdpa: Support config interrupt in vdpa")
Signed-off-by Cindy Lu <[email protected]>
--- drivers/vhost/vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vhost/vdpa.c +1 -1
@@ -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 ;
Signature · 1 line
2.21.3