提交 7ea1a012 编写于 作者: D David Howells 提交者: Linus Torvalds

watch_queue: Free the alloc bitmap when the watch_queue is torn down

Free the watch_queue note allocation bitmap when the watch_queue is
destroyed.

Fixes: c73be61c ("pipe: Add general notification queue support")
Reported-by: NJann Horn <jannh@google.com>
Signed-off-by: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 3b4c0371
...@@ -370,6 +370,7 @@ static void __put_watch_queue(struct kref *kref) ...@@ -370,6 +370,7 @@ static void __put_watch_queue(struct kref *kref)
for (i = 0; i < wqueue->nr_pages; i++) for (i = 0; i < wqueue->nr_pages; i++)
__free_page(wqueue->notes[i]); __free_page(wqueue->notes[i]);
bitmap_free(wqueue->notes_bitmap);
wfilter = rcu_access_pointer(wqueue->filter); wfilter = rcu_access_pointer(wqueue->filter);
if (wfilter) if (wfilter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册