Home
last modified time | relevance | path

Searched hist:"7 fb2fd4e" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/misc/vmw_vmci/
H A Dvmci_queue_pair.c7fb2fd4e Wed Jul 04 04:33:34 CDT 2018 Dan Carpenter <dan.carpenter@oracle.com> vmci: type promotion bug in qp_host_get_user_memory()

The problem is that if get_user_pages_fast() fails and returns a
negative error code, it gets type promoted to a high positive value and
treated as a success.

Fixes: 06164d2b72aa ("VMCI: queue pairs implementation.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7fb2fd4e Wed Jul 04 04:33:34 CDT 2018 Dan Carpenter <dan.carpenter@oracle.com> vmci: type promotion bug in qp_host_get_user_memory()

The problem is that if get_user_pages_fast() fails and returns a
negative error code, it gets type promoted to a high positive value and
treated as a success.

Fixes: 06164d2b72aa ("VMCI: queue pairs implementation.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>