summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-04-10 12:13:34 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-04-22 20:14:44 +0300
commitcea053bed8534cb7de0b2092a246a84e8e512f64 (patch)
tree6fa787d6fcc8e06e3a6b120dee63f3dacde8515e /drivers/media
parentb7f3be1c53280676a7b6036f699b01ef2e97b605 (diff)
downloadlinux-cea053bed8534cb7de0b2092a246a84e8e512f64.tar.xz
media: cros-ec-cec: decrement HDMI device refcount
The CrosEC 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> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/cros-ec-cec/cros-ec-cec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/cros-ec-cec/cros-ec-cec.c b/drivers/media/platform/cros-ec-cec/cros-ec-cec.c
index 7bc4d8a9af28..068df9888dbf 100644
--- a/drivers/media/platform/cros-ec-cec/cros-ec-cec.c
+++ b/drivers/media/platform/cros-ec-cec/cros-ec-cec.c
@@ -236,6 +236,7 @@ static int cros_ec_cec_get_notifier(struct device *dev,
return -EPROBE_DEFER;
*notify = cec_notifier_get_conn(d, m->conn);
+ put_device(d);
return 0;
}
}