mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
media: iris: Fix dma_free_attrs() size in iris_hfi_queues_init()
The core->iface_q_table_vaddr buffer is alloc'd with size queue_size
but freed with sizeof(*q_tbl_hdr) which is different.
Change the dma_free_attrs() size.
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Reviewed-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
Fixes: d7378f84e9 ("media: iris: introduce iris core state management with shared queues")
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
f27cfdcfc9
commit
4a49ae56b0
|
|
@ -263,7 +263,7 @@ int iris_hfi_queues_init(struct iris_core *core)
|
|||
GFP_KERNEL, DMA_ATTR_WRITE_COMBINE);
|
||||
if (!core->sfr_vaddr) {
|
||||
dev_err(core->dev, "sfr alloc and map failed\n");
|
||||
dma_free_attrs(core->dev, sizeof(*q_tbl_hdr), core->iface_q_table_vaddr,
|
||||
dma_free_attrs(core->dev, queue_size, core->iface_q_table_vaddr,
|
||||
core->iface_q_table_daddr, DMA_ATTR_WRITE_COMBINE);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user