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:
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by:
Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by:
Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by:
Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220422222351.1297276-4-bjorn.andersson@linaro.org
Signed-off-by:
Greg 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:
Lee Jones <joneslee@google.com>
Change-Id: I3bfcc613b7f6b08d01f1aab9dce71a05abe25bf6
Loading
Please register or sign in to comment