vhost_vdpa: fix the problem in vhost_vdpa_set_config_call
Subsystems (6)
PATCH v2 1/1 vhost_vdpa: fix the problem in vhost_vdpa_set_config_call
In vhost_vdpa_set_config_call, the cb.private should be vhost_vdpa. this cb.private will finally use in vhost_vdpa_config_cb as vhost_vdpa. Fix this issue.
--- drivers/vhost/vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vhost/vdpa.c +1 -1
@@ -319,7 +319,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
Greg KH
maintainerQuoted 8 lines · Cindy Lu
In
vhost_vdpa_set_config_call, the cb.private should bevhost_vdpa. this cb.private will finally use invhost_vdpa_config_cbasvhost_vdpa. Fix this issue.Signed-off-by Cindy Lu <[email protected]>--- drivers/vhost/vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization