commit | d25d61be6bed44d3a5b7050836e6df602bf3d6ba | [log] [tgz] |
---|---|---|
author | Kyle Tso <kyletso@google.com> | Tue Jul 14 11:34:53 2020 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jul 21 13:38:21 2020 +0200 |
tree | c2c93906ea60f2fee315875c6353a42ffe6bcac4 | |
parent | 1401bfe058d3ccf8867e9faf77744900c305e74e [diff] |
usb: typec: tcpm: Error handling for tcpm_register_partner_altmodes typec_partner_register_altmode returns ERR_PTR. Reset the pointer altmode to NULL on failure. Signed-off-by: Kyle Tso <kyletso@google.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20200714033453.4044482-3-kyletso@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>