summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2019-04-12 06:19:49 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-05-08 13:57:56 -0400
commit1e4e25c4959c10728fbfcc6a286f9503d32dfe02 (patch)
treeb76333d459f67de1473498987f3a59992ec14177 /net/lapb/lapb_iface.c
parent79199002db5c571e335131856b3ff057ffd9f3c0 (diff)
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>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions