Xen/gntdev: don't ignore kernel unmapping error
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Sep 2021 06:13:08 +0000 (08:13 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 20 Sep 2021 14:57:08 +0000 (16:57 +0200)
commitf28347cc66395e96712f5c2db0a302ee75bafce6
tree4f5e9201e40ca5872e60d0bcfd92c5e6b3e74182
parent4403f8062abecf24794e0fd3a3e424cc63ba6662
Xen/gntdev: don't ignore kernel unmapping error

While working on XSA-361 and its follow-ups, I failed to spot another
place where the kernel mapping part of an operation was not treated the
same as the user space part. Detect and propagate errors and add a 2nd
pr_debug().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/c2513395-74dc-aea3-9192-fd265aa44e35@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/gntdev.c