aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-07-11 11:21:13 +0300
committerJeffrey Hugo <[email protected]>2023-07-14 10:14:58 -0600
commit73274c33d961f4aa0f968f763e2c9f4210b4f4a3 (patch)
tree37b9cc60a006018d4d6d855e1ed2ba46c72a089c /scripts/gdb
parent47d87f71d00b7091b43a56f608f7151b33e5772e (diff)
accel/qaic: Fix a leak in map_user_pages()
If get_user_pages_fast() allocates some pages but not as many as we wanted, then the current code leaks those pages. Call put_page() on the pages before returning. Fixes: 129776ac2e38 ("accel/qaic: Add control path") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Pranjal Ramajor Asha Kanojiya <[email protected]> Reviewed-by: Jeffrey Hugo <[email protected]> Reviewed-by: Dafna Hirschfeld <[email protected]> Cc: [email protected] # 6.4.x Signed-off-by: Jeffrey Hugo <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/ZK0Q+ZuONTsBG+1T@moroto
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions