VMCI: Fix broken context ID retrieval
authorAndy King <acking@vmware.com>
Tue, 22 Jan 2013 17:15:04 +0000 (09:15 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2013 17:29:26 +0000 (09:29 -0800)
commit5a19b78972c39be0c5378c14c23e6c998683e80f
treebc2039eb5e3d14efc3140bc480c2a4109c0d66d8
parent74465645cdb4391b9fc95d12fd750a88012ad479
VMCI: Fix broken context ID retrieval

I'm an idiot.  The context ID can be a really large unsigned number, which
means it'll appear negative as an int.  So actually the right fix here is just
to set it regardless of the returned value (but only for this particular
hypercall; normally we would check it).

Acked-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Andy King <acking@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_vmci/vmci_guest.c