diff options
author | Kyle Tso <kyletso@google.com> | 2020-07-14 11:34:53 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-21 13:38:21 +0200 |
commit | d25d61be6bed44d3a5b7050836e6df602bf3d6ba (patch) | |
tree | c2c93906ea60f2fee315875c6353a42ffe6bcac4 /net | |
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions