xen/arm: Free p2m entry if fail to add it to RB tree

Release the newly allocated p2m entry if we detect a duplicate in the RB
tree.

Signed-off-by: Hillf Danton <hdanton@sina.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Hillf Danton 2019-04-30 11:25:00 -07:00 • committed by Stefano Stabellini
commit 425f1cc221