]> git.ipfire.org Git - thirdparty/linux.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>
Wed, 17 Dec 2025 13:53:16 +0000 (14:53 +0100)
commit128bb7fab342546352603bde8b49ff54e3af0529
tree61c682a460e3ee03fa6736268c49df616f8cffdc
parent41ca62e3e21e48c2903b3b45e232cf4f2ff7434f
usb: typec: altmodes/displayport: Drop the device reference in dp_altmode_probe()

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