watch_queue: Free the alloc bitmap when the watch_queue is torn down
authorDavid Howells <dhowells@redhat.com>
Fri, 11 Mar 2022 13:24:29 +0000 (13:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2022 13:23:44 +0000 (14:23 +0100)
commit82ff8a2243f79072178f6a741bdead88e0b0c324
tree1783c92e45ca44c4e2ddd23b6bd841bd27988323
parentd453d0e5a15da9c5aa5dabf817230120111fb0ac
watch_queue: Free the alloc bitmap when the watch_queue is torn down

commit 7ea1a0124b6da246b5bc8c66cddaafd36acf3ecb upstream.

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

Fixes: c73be61cede5 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/watch_queue.c