aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2022-03-11 13:23:38 +0000
committerLinus Torvalds <[email protected]>2022-03-11 10:17:12 -0800
commitdb8facfc9fafacefe8a835416a6b77c838088f8b (patch)
tree2f51a12315d4a96ce097736087eec3eec548f50a /drivers/usb
parentc993ee0f9f81caf5767a50d1faeba39a0dc82af2 (diff)
watch_queue, pipe: Free watchqueue state after clearing pipe ring
In free_pipe_info(), free the watchqueue state after clearing the pipe ring as each pipe ring descriptor has a release function, and in the case of a notification message, this is watch_queue_pipe_buf_release() which tries to mark the allocation bitmap that was previously released. Fix this by moving the put of the pipe's ref on the watch queue to after the ring has been cleared. We still need to call watch_queue_clear() before doing that to make sure that the pipe is disconnected from any notification sources first. Fixes: c73be61cede5 ("pipe: Add general notification queue support") Reported-by: Jann Horn <[email protected]> Signed-off-by: David Howells <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions