aboutsummaryrefslogtreecommitdiffstats
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorLuke Nowakowski-Krijger <[email protected]>2019-06-22 01:04:38 +0000
committerMauro Carvalho Chehab <[email protected]>2019-06-27 11:35:24 +0000
commitc666355e60ddb4748ead3bdd983e3f7f2224aaf0 (patch)
tree9aaf66c53d48a2945072534ff2a1faea4f75d40e /lib/timerqueue.c
parentmedia: stv0297: fix frequency range limit (diff)
downloadkernel-c666355e60ddb4748ead3bdd983e3f7f2224aaf0.tar.gz
kernel-c666355e60ddb4748ead3bdd983e3f7f2224aaf0.zip
media: radio-raremono: change devm_k*alloc to k*alloc
Change devm_k*alloc to k*alloc to manually allocate memory The manual allocation and freeing of memory is necessary because when the USB radio is disconnected, the memory associated with devm_k*alloc is freed. Meaning if we still have unresolved references to the radio device, then we get use-after-free errors. This patch fixes this by manually allocating memory, and freeing it in the v4l2.release callback that gets called when the last radio device exits. Reported-and-tested-by: [email protected] Signed-off-by: Luke Nowakowski-Krijger <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> [[email protected]: cleaned up two small checkpatch.pl warnings] [[email protected]: prefix subject with driver name] Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions