Before the merging of the two VMCI drivers, the guest version
would return VMCI_ERROR_ALREADY_EXISTS when creating a
doorbell with a handle that already exists. The host code
actually returned VMCI_ERROR_DUPLICATE_ENTRY, which is the
hash table error code for duplicate entries. After the merge,
we always return VMCI_ERROR_DUPLICATE_ENTRY, but
VMCI_ERROR_ALREADY_EXISTS is slightly more descriptive so
return that instead.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
if (result != VMCI_SUCCESS) {
VMCI_WARNING((LGPFX"Failed to add new resource (handle=0x%x:0x%x).\n",
newHandle.context, newHandle.resource));
+ if (result == VMCI_ERROR_DUPLICATE_ENTRY) {
+ result = VMCI_ERROR_ALREADY_EXISTS;
+ }
goto destroy;
}
#ifndef _VMCI_VERSION_H_
#define _VMCI_VERSION_H_
-#define VMCI_DRIVER_VERSION 9.1.14.0
-#define VMCI_DRIVER_VERSION_COMMAS 9,1,14,0
-#define VMCI_DRIVER_VERSION_STRING "9.1.14.0"
+#define VMCI_DRIVER_VERSION 9.1.15.0
+#define VMCI_DRIVER_VERSION_COMMAS 9,1,15,0
+#define VMCI_DRIVER_VERSION_STRING "9.1.15.0"
#endif /* _VMCI_VERSION_H_ */