mirror of
https://github.com/torvalds/linux.git
synced 2025-11-05 03:00:13 +02:00
In a couple of places in qp_host_get_user_memory(),
get_user_pages_fast() is called without properly checking for errors. If
e.g. -EFAULT is returned, this negative value will then be passed on to
qp_release_pages(), which expects a u64 as input.
Fix this by only calling qp_release_pages() when we have a positive
number returned.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| vmci_context.c | ||
| vmci_context.h | ||
| vmci_datagram.c | ||
| vmci_datagram.h | ||
| vmci_doorbell.c | ||
| vmci_doorbell.h | ||
| vmci_driver.c | ||
| vmci_driver.h | ||
| vmci_event.c | ||
| vmci_event.h | ||
| vmci_guest.c | ||
| vmci_handle_array.c | ||
| vmci_handle_array.h | ||
| vmci_host.c | ||
| vmci_queue_pair.c | ||
| vmci_queue_pair.h | ||
| vmci_resource.c | ||
| vmci_resource.h | ||
| vmci_route.c | ||
| vmci_route.h | ||