vhost_user: 'nregions' saves the actual number of mapped guest physical address area 76/10176/3
authorHaiyang Tan <haiyang.tan.dev@gmail.com>
Sat, 20 Jan 2018 09:01:28 +0000 (04:01 -0500)
committerDamjan Marion <dmarion.lists@gmail.com>
Sun, 21 Jan 2018 10:30:56 +0000 (10:30 +0000)
commit352ecd95c9cef74e1726f750dae86c1f97999275
tree5d84d3145c46901388ffe48d90c439475ac36fcf
parent9b95425de61d9f1c4b8bb7490b1250ac03fd8243
vhost_user: 'nregions' saves the actual number of mapped guest physical address area

This patch fixed the VMA leak that if mapping one of guest physical address area get failed.

Change-Id: I07b0b9a932209561d6ff2b2dd08a111ea5db2209
Signed-off-by: Haiyang Tan <haiyang.tan.dev@gmail.com>
src/vnet/devices/virtio/vhost-user.c