diff options
author | 2022-04-23 13:53:21 -0700 | |
---|---|---|
committer | 2022-04-23 13:53:21 -0700 | |
commit | b51bd23c614bc5a8a905d258133246e78d611df1 (patch) | |
tree | dc6fe62a9991179b5e91dbf8c124eaf6a34d9fbf /drivers/xen/gntalloc.c | |
parent | Merge tag 'drm-fixes-2022-04-23' of git://anongit.freedesktop.org/drm/drm (diff) | |
parent | arm/xen: Fix some refcount leaks (diff) | |
download | linux-dev-b51bd23c614bc5a8a905d258133246e78d611df1.tar.xz linux-dev-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/xen/gntalloc.c')
-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); |