History

mm/memremap: fix missing call to untrack_pfn() in pagemap_range()

We forget to call untrack_pfn() to pair with track_pfn_remap() when range is not allowed to hotplug. Fix it by jump err_kasan.

Miaohe Lin committed 4 years ago

Commit a04e1921 parent 547be961 file · +1 −1Browse files

Unified · Split

mm/memremap.c+1−1
@@ -214,7 +214,7 @@ static int pagemap_range(struct dev_pagemap *pgmap, struct mhp_params *params, · 213 unmodified lines
214214
215215 if (!mhp_range_allowed(range->start, range_len(range), !is_private)) {
216216 error = -EINVAL;
217− goto err_pfn_remap;
217+ goto err_kasan;
218218 }
219219
220220 mem_hotplug_begin();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t