diff options
author | Eugen Hristev <eugen.hristev@microchip.com> | 2019-04-12 13:19:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-15 12:52:56 +0300 |
commit | 6f9ca872dd8d94c175f9fd1bc256b79fda7a2115 (patch) | |
tree | f4281c1a8420afb02f6e79f07ffdf47ecaa158e8 /fs/configfs/dir.c | |
parent | b039536485970829918aa237a08417bd0ed5437c (diff) | |
download | linux-6f9ca872dd8d94c175f9fd1bc256b79fda7a2115.tar.xz |
media: atmel: atmel-isc: fix asd memory allocation
[ Upstream commit 1e4e25c4959c10728fbfcc6a286f9503d32dfe02 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/configfs/dir.c')
0 files changed, 0 insertions, 0 deletions