usb: typec: mux: Check dev_set_name() return value
stable inclusion from stable-v5.10.122 commit 6f01c0fb8e44b7ac9dad9e728e44157cbf7b3d4a category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5W6OE Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6f01c0fb8e44b7ac9dad9e728e44157cbf7b3d4a -------------------------------- [ Upstream commit b9fa0292 ] It's possible that dev_set_name() returns -ENOMEM, catch and handle this. Fixes: 3370db35 ("usb: typec: Registering real device entries for the muxes") Reported-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com> Acked-by: NHeikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220422222351.1297276-4-bjorn.andersson@linaro.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录