linux_dsm_epyc7002/drivers/media/platform/atmel
Eugen Hristev 1e4e25c495 media: atmel: atmel-isc: fix asd memory allocation
The subsystem will free the asd memory on notifier cleanup, if the asd is
added to the notifier.
However the memory is freed using kfree.
Thus, we cannot allocate the asd using devm_*
This can lead to crashes and problems.
To test this issue, just return an error at probe, but cleanup the
notifier beforehand.

Fixes: 106267444f ("[media] atmel-isc: add the Image Sensor Controller code")

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-08 13:57:56 -04:00
..
atmel-isc-regs.h media: atmel: atmel-isc: limit incoming pixels per frame 2019-05-08 13:55:09 -04:00
atmel-isc.c media: atmel: atmel-isc: fix asd memory allocation 2019-05-08 13:57:56 -04:00
atmel-isi.c media: platform: fix several typos 2019-03-01 09:35:21 -05:00
atmel-isi.h [media] atmel-isi: move out of soc_camera to atmel 2017-04-10 08:00:06 -03:00
Kconfig media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
Makefile [media] atmel-isi: move out of soc_camera to atmel 2017-04-10 08:00:06 -03:00