media: pulse8-cec: close serio in disconnect, not adap_free
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 24 Jan 2020 14:52:38 +0000 (15:52 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 14:05:14 +0000 (15:05 +0100)
commitaa9eda76129c9f44c4dd7e233b04bc70c0f56e12
treea9e8aca97d564396163b5eae4eba662a46634885
parent34a818882e2f84704059dead1f02eb8943e222c3
media: pulse8-cec: close serio in disconnect, not adap_free

The serio_close() call was moved to pulse8_cec_adap_free(),
but that can be too late if that is called after the serio
core pulled down the serio already, in which case you get
a kernel oops.

Keep it in the disconnect().

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Fixes: 601282d65b96 ("media: pulse8-cec: use adap_free callback")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/pulse8-cec/pulse8-cec.c