diff options
| author | Jan Beulich <jbeulich@suse.com> | 2021-02-15 08:50:08 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-23 13:58:14 +0100 |
| commit | 2e915736abc8478f754ed6b591af0d4d1385dd8b (patch) | |
| tree | 61506ebed7e384f8d20867471d4139273bd7237a /drivers/xen/gntdev.c | |
| parent | 15b6ca2cef13f06ef41d9ebc094ef7770fd98ab3 (diff) | |
Xen/x86: also check kernel mapping in set_foreign_p2m_mapping()
commit b512e1b077e5ccdbd6e225b15d934ab12453b70a upstream.
We should not set up further state if either mapping failed; paying
attention to just the user mapping's status isn't enough.
Also use GNTST_okay instead of implying its value (zero).
This is part of XSA-361.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: stable@vger.kernel.org
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/xen/gntdev.c')
0 files changed, 0 insertions, 0 deletions
