[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix error path cleanup
- To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Owen Smith <owen.smith@xxxxxxxxxx>
- Date: Thu, 19 May 2022 11:17:36 +0100
- Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
- Cc: Owen Smith <owen.smith@xxxxxxxxxx>
- Delivery-date: Thu, 19 May 2022 10:17:54 +0000
- Ironport-data: A9a23:4RbBxKo3T/HYMKXhpcviEmxX8GFeBmJJZRIvgKrLsJaIsI4StFCzt garIBnQO6yNYmHyKdEnOYuwoRkD7MWGz9ZgG1drqHhjEC5EopuZCYyVIHmrMnLJJKUvbq7GA +byyDXkBJppJpMJjk71atANlVEliefQAOCU5NfsYkidfyc9IMsaoU8lyrdRbrJA24DjWVvQ4 IKq+qUzBXf+s9JKGjNMg068gEsHUMTa4Fv0aXRnOJinFHeH/5UkJMp3yZOZdhMUcaENdgKOf M7RzanRw4/s10xF5uVJMFrMWhZirrb6ZWBig5fNMkSoqkAqSicais7XOBeAAKv+Zvrgc91Zk b1wWZKMpQgBIojKqdkebzdkTx5MAZdvwrj2fFeVmJnGp6HGWyOEL/RGCUg3OcsT+/ptAHEI/ vsdQNwPRknd3aTsmuv9E7QywJR4RCXoFNp3VnVIyi7UC7A9RJHfQ43B5MNC3Sd2jcdLdRrbT 5VDMWUyPEydC/FJEhApIbEkouuMumTmQz5j9A+M9ZZquVGGmWSd15CyaYGIK7RmX/59gUee4 3rYumj0HBweHNie0iaetGKhgPfVmiH2U55UE6e3nsOGm3XKmDZVUkdPEwLm/7/p0SZSRu6zN WQI3ywfkKsO2nD3cevBZTSCp0/ZkTQ1Do84//IB1CmBza/d4gC8D2cCTyJcZNFOiPLaVQDGx XfSwYq3WGUHXKm9DCvEq+zK9W/a1T09dzdqWMMScecSDzAPSqkXhwmHcNtsGbXdYjbdSWCpm GDiQMTTatwuYS83O0eToAmvb9GE/MGhousJCuL/BzvN0++BTNT5D7FEEHCChRq6EK6XT0Oao F8PkNWE4eYFAPmlzXLQGrVURu30vqjeaFUwZGKD+LF4p1yQF4OLJ9gMsFmS2m83Wir7RdMZS BCK4l4AjHOiFHCrcbV2c+qM5zcClsDd+SDefqmMNLJmO8EpHCfepX0GTRPAjgjFzRl3+Ylia MjzTCpZJStDYUiR5GHtHLl1PH5C7n1W+F4/srigkUj2iefENSfMIVrHWXPXBt0EAGq/iF292 75i2wGikX2zjMWWjvHrzLMu
- Ironport-hdrordr: A9a23:8ZRtQKHpDSDF+1nNpLqE4seALOsnbusQ8zAXP0AYc3Nom6uj5q WTdZUgpHjJYVkqOU3I9ersBEDiewK/yXcW2+ks1N6ZNWGM0ldARLsSibcKqAePJ8SRzIJgPN 9bAstDNOE=
- List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
src/xenbus/fdo.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/xenbus/fdo.c b/src/xenbus/fdo.c
index 48d381a..d08c518 100644
--- a/src/xenbus/fdo.c
+++ b/src/xenbus/fdo.c
@@ -3389,7 +3389,10 @@ FdoCreateHole(
fail3:
Error("fail3\n");
- __FdoDestroyMemoryHole(Fdo);
+ if (Fdo->Mdl != NULL)
+ __FdoDestroyMemoryHole(Fdo);
+ else
+ __FdoDestroyPciHole(Fdo);
fail2:
Error("fail2\n");
--
2.32.0.windows.1
|