On Thu, May 8, 2025 at 2:47 AM Jonah Palmer <jonah.pal...@oracle.com> wrote: > > From: Eugenio Pérez <epere...@redhat.com> > > Since commit f6fe3e333f ("vdpa: move memory listener to > vhost_vdpa_shared") this piece of code repeatedly assign > shared->listener members. This was not a problem as it was not used > until device start. > > However next patches move the listener registration to this > vhost_vdpa_init function. When the listener is registered it is added > to an embedded linked list, so setting its members again will cause > memory corruption to the linked list node. > > Do the right thing and only set it in the first vdpa device. > > Signed-off-by: Eugenio Pérez <epere...@redhat.com> > Signed-off-by: Jonah Palmer <jonah.pal...@oracle.com>
Acked-by: Jason Wang <jasow...@redhat.com> Thanks