summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-04-23 13:53:21 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-04-23 13:53:21 -0700
commitb51bd23c614bc5a8a905d258133246e78d611df1 (patch)
treedc6fe62a9991179b5e91dbf8c124eaf6a34d9fbf /drivers
parent13bc32bad7059d6c5671e9d037e6e3ed001cc0f4 (diff)
parent533bec143a4c32f7b2014a159d0f5376226e5b4d (diff)
downloadlinux-stable-b51bd23c614bc5a8a905d258133246e78d611df1.tar.gz
linux-stable-b51bd23c614bc5a8a905d258133246e78d611df1.tar.bz2
linux-stable-b51bd23c614bc5a8a905d258133246e78d611df1.zip
Merge tag 'for-linus-5.18-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen fixes from Juergen Gross: "A simple cleanup patch and a refcount fix for Xen on Arm" * tag 'for-linus-5.18-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: arm/xen: Fix some refcount leaks xen: Convert kmap() to kmap_local_page()
Diffstat (limited to 'drivers')
-rw-r--r--drivers/xen/gntalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/gntalloc.c b/drivers/xen/gntalloc.c
index 4849f94372a4..55acb32842a3 100644
--- a/drivers/xen/gntalloc.c
+++ b/drivers/xen/gntalloc.c
@@ -178,9 +178,9 @@ static void __del_gref(struct gntalloc_gref *gref)
unsigned long addr;
if (gref->notify.flags & UNMAP_NOTIFY_CLEAR_BYTE) {
- uint8_t *tmp = kmap(gref->page);
+ uint8_t *tmp = kmap_local_page(gref->page);
tmp[gref->notify.pgoff] = 0;
- kunmap(gref->page);
+ kunmap_local(tmp);
}
if (gref->notify.flags & UNMAP_NOTIFY_SEND_EVENT) {
notify_remote_via_evtchn(gref->notify.event);