]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usb: typec: mux: Check dev_set_name() return value
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 22 Apr 2022 22:23:47 +0000 (15:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2022 11:47:13 +0000 (13:47 +0200)
commitb9fa0292490db39d6542f514117333d366ec0011
treebf88ad61767c5498f0a0730ceb49703b4ccec0da
parentbcd6a517aacae7e708a1be019a0c3ab9f4371c2b
usb: typec: mux: Check dev_set_name() return value

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

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>
drivers/usb/typec/mux.c