]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: tipd: Fix error code in tps6598x_probe()
authorDan Carpenter <error27@gmail.com>
Tue, 12 May 2026 10:14:59 +0000 (13:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 May 2026 13:14:19 +0000 (15:14 +0200)
commitb02900c85a6423cf9b3dcc6b47bf060c85075e69
treeac1b9b16a375461c9d283d5f85fc05a73261a807
parent5d6919055dec134de3c40167a490f33c74c12581
usb: typec: tipd: Fix error code in tps6598x_probe()

Set the error code on these two error paths.  The existing code returns
success.

Fixes: 77ed2f4538da ("usb: typec: tipd: Use read_power_status function in probe")
Fixes: 04041fd7d6ec ("usb: typec: tipd: Read data status in probe and cache its value")
Cc: stable <stable@kernel.org>
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/agL9o7wUK1dOVBTy@stanley.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tipd/core.c