diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-04-23 23:53:21 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-04-23 23:53:21 +0300 |
commit | b51bd23c614bc5a8a905d258133246e78d611df1 (patch) | |
tree | dc6fe62a9991179b5e91dbf8c124eaf6a34d9fbf /drivers | |
parent | 13bc32bad7059d6c5671e9d037e6e3ed001cc0f4 (diff) | |
parent | 533bec143a4c32f7b2014a159d0f5376226e5b4d (diff) | |
download | linux-b51bd23c614bc5a8a905d258133246e78d611df1.tar.xz |
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.c | 4 |
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); |