summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-04-10 12:13:33 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-04-22 20:14:24 +0300
commitb7f3be1c53280676a7b6036f699b01ef2e97b605 (patch)
treecd830507f7f59f8889a18cc9e3c9ed0ea83e8812 /drivers/media
parent4d34c9267db7af6c23c29adb73a58882a250c2e0 (diff)
downloadlinux-b7f3be1c53280676a7b6036f699b01ef2e97b605.tar.xz
media: seco-cec: decrement HDMI device refcount
The SECO CEC driver never decremented the HDMI device refcount. CEC drivers only need the HDMI device pointer as a key in the notifier list, it never accesses the device, so there is no need to keep a reference. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/seco-cec/seco-cec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/seco-cec/seco-cec.c b/drivers/media/platform/seco-cec/seco-cec.c
index a425a10540c1..e5080d6f5b2d 100644
--- a/drivers/media/platform/seco-cec/seco-cec.c
+++ b/drivers/media/platform/seco-cec/seco-cec.c
@@ -536,6 +536,7 @@ static int secocec_cec_get_notifier(struct cec_notifier **notify)
return -EPROBE_DEFER;
*notify = cec_notifier_get_conn(d, m->conn);
+ put_device(d);
return 0;
}