]> git.baikalelectronics.ru Git - kernel.git/commit
xen/arm: don't ignore return errors from set_phys_to_machine
authorStefano Stabellini <stefano.stabellini@xilinx.com>
Mon, 15 Feb 2021 07:53:44 +0000 (08:53 +0100)
committerJuergen Gross <jgross@suse.com>
Mon, 15 Feb 2021 07:53:44 +0000 (08:53 +0100)
commitc81489d24537576cc6c9ef5fb3af6e124705a75d
treebeb8cddf0a2e8db742905bc9b49d983e4d885220
parentb7bf4273d5d7f78761e90f08cb10a48946f8d4ae
xen/arm: don't ignore return errors from set_phys_to_machine

set_phys_to_machine can fail due to lack of memory, see the kzalloc call
in arch/arm/xen/p2m.c:__set_phys_to_machine_multi.

Don't ignore the potential return error in set_foreign_p2m_mapping,
returning it to the caller instead.

This is part of XSA-361.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Cc: stable@vger.kernel.org
Reviewed-by: Julien Grall <jgrall@amazon.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/arm/xen/p2m.c