VMCI: Fix deref before NULL-check of queuepair ptr
authorAndy King <acking@vmware.com>
Thu, 10 Jan 2013 23:41:40 +0000 (15:41 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 20:07:39 +0000 (12:07 -0800)
commit32b083a3fd1452b9d5aba8e781ca95b566f3e054
tree352be2ecd9e5d5aa3689a3b41336692b274711fd
parent42281d20cdf94a9d2aae67ee019f8bcc390ebed6
VMCI: Fix deref before NULL-check of queuepair ptr

Check for a valid queuepair ptr before trying to lock the queuepair (which will
deref it).

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andy King <acking@vmware.com>
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_vmci/vmci_queue_pair.c