aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/platform/vimc/vimc-scaler.c
diff options
context:
space:
mode:
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>2019-10-07 10:50:01 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-10-24 19:00:38 -0300
commit291aca4e7bdd87a01e21d90382fd0b231b280272 (patch)
treeef0553aafb3ef56a73ef32fec1bd99eed20dc737 /drivers/media/platform/vimc/vimc-scaler.c
parent4996992c4f7410e9a43aa3047e8034756cece21a (diff)
media: vimc: sen: register subdevice only after initialization
vimc_sen_add function first registers the subdevice and then calls tpg_alloc. If tpg_alloc fails it unregisters the subdevice and then frees vsen, this cause double free since the release callback that follows subdevice unregistration also frees vsen. Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Acked-by: Helen Koike <helen.koike@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-scaler.c')
0 files changed, 0 insertions, 0 deletions