mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 16:59:27 +02:00
media: iris: gen1: Destroy internal buffers after FW releases
After the firmware releases internal buffers, the driver was not
destroying them. This left stale allocations that were no longer used,
especially across resolution changes where new buffers are allocated per
the updated requirements. As a result, memory was wasted until session
close.
Destroy internal buffers once the release response is received from the
firmware.
Fixes: 73702f45db ("media: iris: allocate, initialize and queue internal buffers")
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
Reviewed-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
811dbc546f
commit
1dabf00ee2
|
|
@ -441,6 +441,8 @@ static int iris_hfi_gen1_session_unset_buffers(struct iris_inst *inst, struct ir
|
|||
goto exit;
|
||||
|
||||
ret = iris_wait_for_session_response(inst, false);
|
||||
if (!ret)
|
||||
ret = iris_destroy_internal_buffer(inst, buf);
|
||||
|
||||
exit:
|
||||
kfree(pkt);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user