mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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>
This commit is contained in:
parent
4d34c9267d
commit
b7f3be1c53
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue