]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: typec: altmodes/displayport: Drop the device reference in dp_altmode_probe()
authorHaoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Sat, 6 Dec 2025 07:04:45 +0000 (15:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Jan 2026 11:57:13 +0000 (12:57 +0100)
commitd377fe40ff5a4d7ccb0e3efa9381adfd4238f3b2
treeb6fa534c2a394803ee510454dd85d61cef0e84e7
parent8422cdf91db1dc73f371adbc8af6d24d1908d1d3
usb: typec: altmodes/displayport: Drop the device reference in dp_altmode_probe()

commit 128bb7fab342546352603bde8b49ff54e3af0529 upstream.

In error paths, call typec_altmode_put_plug() to drop the device reference
obtained by typec_altmode_get_plug().

Fixes: 71ba4fe56656 ("usb: typec: altmodes/displayport: add SOP' support")
Cc: stable <stable@kernel.org>
Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20251206070445.190770-1-lihaoxiang@isrc.iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/altmodes/displayport.c