mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
thunderbolt: Fix memory leak in tb_handle_dp_bandwidth_request()
The memory allocated in tb_queue_dp_bandwidth_request() needs to be
released once the request is handled to avoid leaking it.
Fixes: 6ce3563520
("thunderbolt: Add support for DisplayPort bandwidth allocation mode")
Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
583893a66d
commit
596a5123cc
1 changed files with 2 additions and 0 deletions
|
@ -1964,6 +1964,8 @@ static void tb_handle_dp_bandwidth_request(struct work_struct *work)
|
||||||
|
|
||||||
pm_runtime_mark_last_busy(&tb->dev);
|
pm_runtime_mark_last_busy(&tb->dev);
|
||||||
pm_runtime_put_autosuspend(&tb->dev);
|
pm_runtime_put_autosuspend(&tb->dev);
|
||||||
|
|
||||||
|
kfree(ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void tb_queue_dp_bandwidth_request(struct tb *tb, u64 route, u8 port)
|
static void tb_queue_dp_bandwidth_request(struct tb *tb, u64 route, u8 port)
|
||||||
|
|
Loading…
Reference in a new issue