mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
misc: genwqe: free DDCB wait queues
free_ddcb_queue() does not release the per-DDCB wait queues, which leaks memory whenever the service layer is released. Signed-off-by: Xuewen Wang <wangxuewen@kylinos.cn> Link: https://patch.msgid.link/20260902075405.944687-1-wangxuewen@kylinos.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
933f37aff6
commit
01c2f21ae4
|
|
@ -1103,6 +1103,9 @@ static void free_ddcb_queue(struct genwqe_dev *cd, struct ddcb_queue *queue)
|
|||
|
||||
queue_size = roundup(queue->ddcb_max * sizeof(struct ddcb), PAGE_SIZE);
|
||||
|
||||
kfree(queue->ddcb_waitqs);
|
||||
queue->ddcb_waitqs = NULL;
|
||||
|
||||
kfree(queue->ddcb_req);
|
||||
queue->ddcb_req = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user