staging: rtl8192e: return error code from rtllib_softmac_init()
stable inclusion from stable-v5.10.94 commit 49f5cd2b7c417a1dc71d45a866ea14b17ef72c4f bugzilla: https://gitee.com/openeuler/kernel/issues/I531X9 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=49f5cd2b7c417a1dc71d45a866ea14b17ef72c4f -------------------------------- [ Upstream commit 68bf78ff ] If it fails to allocate 'dot11d_info', rtllib_softmac_init() should return error code. And remove unneccessary error message. Fixes: 94a79942 ("From: wlanfae <wlanfae@realtek.com>") Reviewed-by: NDan Carpenter <dan.carpenter@oracle.com> Reviewed-by: NPavel Skripkin <paskripkin@gmail.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20211202030704.2425621-2-yangyingliang@huawei.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录