mbox series

[0/2] migration/rdma: fix nullptr-def in rdma_start_incoming_migration

Message ID 20200508100755.7875-1-pannengyuan@huawei.com
Headers show
Series migration/rdma: fix nullptr-def in rdma_start_incoming_migration | expand

Message

Pan Nengyuan May 8, 2020, 10:07 a.m. UTC
I fix a memleak in rdma_start_incoming_migration some time ago.
https://patchwork.kernel.org/patch/11498191/

I'm sorry that it may cause a null-pointer access, this patch fix that.

Since we are here, rdma_start_outgoing_migration has the similar memleak, fix it together.

Pan Nengyuan (2):
  migration/rdma: fix potential nullptr access in
    rdma_start_incoming_migration
  migration/rdma: cleanup rdma context before g_free to avoid memleaks

 migration/rdma.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)