android_kernel_motorola_sm6375/drivers/virt
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Souptick Joarder be700c52ae drivers/virt/fsl_hypervisor: Fix error handling path
[ Upstream commit 7f360bec37857bfd5a48cef21d86f58a09a3df63 ]

First, when memory allocation for sg_list_unaligned failed, there
is a bug of calling put_pages() as we haven't pinned any pages.

Second, if get_user_pages_fast() failed we should unpin num_pinned
pages.

This will address both.

As part of these changes, minor update in documentation.

Fixes: 6db7199407 ("drivers/virt: introduce Freescale hypervisor management driver")
Signed-off-by: Souptick Joarder <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Reviewed-by: John Hubbard <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2020-10-29 09:57:38 +01:00
..
vboxguest
fsl_hypervisor.c drivers/virt/fsl_hypervisor: Fix error handling path 2020-10-29 09:57:38 +01:00
Kconfig
Makefile