Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3c950c4d authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Lee Jones
Browse files

BACKPORT: usb: typec: mux: Check dev_set_name() return value



It's possible that dev_set_name() returns -ENOMEM, catch and handle this.

Bug: 254441685
Fixes: 3370db35193b ("usb: typec: Registering real device entries for the muxes")
Reported-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220422222351.1297276-4-bjorn.andersson@linaro.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit b9fa0292490db39d6542f514117333d366ec0011)
[Lee: dev_set_name() line was a little different - trivial fix-up]
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: I3bfcc613b7f6b08d01f1aab9dce71a05abe25bf6
parent 9944d013
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment