Skip to content

Commit 7ea1a01

Browse files
dhowellstorvalds
authored andcommitted
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: c73be61 ("pipe: Add general notification queue support") Reported-by: Jann Horn <jannh@google.com> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 3b4c037 commit 7ea1a01

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/watch_queue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ static void __put_watch_queue(struct kref *kref)
370370

371371
for (i = 0; i < wqueue->nr_pages; i++)
372372
__free_page(wqueue->notes[i]);
373+
bitmap_free(wqueue->notes_bitmap);
373374

374375
wfilter = rcu_access_pointer(wqueue->filter);
375376
if (wfilter)

0 commit comments

Comments
 (0)