1
0
Fork 0

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>
hifive-unleashed-5.2
Hans Verkuil 2019-04-10 05:13:34 -04:00 committed by Mauro Carvalho Chehab
parent b7f3be1c53
commit cea053bed8
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}