diff options
author | Tejun Heo <tj@kernel.org> | 2014-08-15 16:06:06 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-08-15 16:06:06 -0400 |
commit | f0d279654dea22b7a6ad34b9334aee80cda62cde (patch) | |
tree | a4f81f1c04ffced7ac5a5630487d27d575a181c8 /Documentation/vme_api.txt | |
parent | c9d26423e56ce1ab4d786f92aebecf859d419293 (diff) |
percpu: fix pcpu_alloc_pages() failure path
When pcpu_alloc_pages() fails midway, pcpu_free_pages() is invoked to
free what has already been allocated. The invocation is across the
whole requested range and pcpu_free_pages() will try to free all
non-NULL pages; unfortunately, this is incorrect as
pcpu_get_pages_and_bitmap(), unlike what its comment suggests, doesn't
clear the pages array and thus the array may have entries from the
previous invocations making the partial failure path free incorrect
pages.
Fix it by open-coding the partial freeing of the already allocated
pages.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'Documentation/vme_api.txt')
0 files changed, 0 insertions, 0 deletions