Files
twx-linux/drivers
Christophe JAILLET 4688f00f5e media: cx25821: Fix a bug when reallocating some dma memory
[ Upstream commit b2de3643c5 ]

This function looks like a realloc.

However, if 'risc->cpu != NULL', the memory will be freed, but never
reallocated with the bigger 'size'.
Explicitly set 'risc->cpu' to NULL, so that the reallocation is
correctly performed a few lines below.

[hverkuil: NULL != risc->cpu -> risc->cpu]

Fixes: 5ede94c705 ("[media] cx25821: remove bogus btcx_risc dependency)
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 09:39:40 +01:00
..
…
…
2021-03-04 09:39:31 +01:00
…
…
…
…
…
…
…
…
…
2021-01-19 18:22:36 +01:00
2021-01-17 14:04:22 +01:00
…
2021-01-09 13:43:47 +01:00
…
…
…
…
2020-12-30 11:26:04 +01:00
…
…
…
…
…
…
…
2021-03-04 09:39:35 +01:00
…
…
…
…
…
…
…