alistair23-linux/drivers/misc/vmw_vmci
Jorgen Hansen eb94cd68ab VMCI: Doorbell create and destroy fixes
This change consists of two changes:

1) If vmci_doorbell_create is called when neither guest nor
   host personality as been initialized, vmci_get_context_id
   will return VMCI_INVALID_ID. In that case, we should fail
   the create call.
2) In doorbell destroy, we assume that vmci_guest_code_active()
   has the same return value on create and destroy. That may not
   be the case, so we may end up with the wrong refcount.
   Instead, destroy should check explicitly whether the doorbell
   is in the index table as an indicator of whether the guest
   code was active at create time.

Reviewed-by: Adit Ranadive <aditr@vmware.com>
Signed-off-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-28 08:26:21 -04:00
..
Kconfig
Makefile
vmci_context.c
vmci_context.h
vmci_datagram.c misc/vmw_vmci: use kmemdup rather than duplicating its implementation 2015-09-20 19:27:58 -07:00
vmci_datagram.h
vmci_doorbell.c VMCI: Doorbell create and destroy fixes 2016-10-28 08:26:21 -04:00
vmci_doorbell.h
vmci_driver.c VMCI: Doorbell create and destroy fixes 2016-10-28 08:26:21 -04:00
vmci_driver.h
vmci_event.c
vmci_event.h
vmci_guest.c PCI: Move PCI_VENDOR_ID_VMWARE to pci_ids.h 2014-09-24 11:52:09 -06:00
vmci_handle_array.c
vmci_handle_array.h
vmci_host.c VMCI: use memdup_user(). 2016-08-31 13:18:10 +02:00
vmci_queue_pair.c mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros 2016-04-04 10:41:08 -07:00
vmci_queue_pair.h
vmci_resource.c
vmci_resource.h
vmci_route.c
vmci_route.h