]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: iss: fix handling error cases in iss_net_configure()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 7 Jul 2022 02:32:29 +0000 (10:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:52 +0000 (14:23 +0200)
commit322f781ecae63a2286e11023f854d73af3fa120a
treea90d0fe885caa8616aa4d0aa1658031d24230be1
parent4737259deaba033a9cb8e6165185b6d404af7b20
xtensa: iss: fix handling error cases in iss_net_configure()

[ Upstream commit 528732497f38826c9b1f281fc57cd56dcf57ac11 ]

The 'pdev' and 'netdev' need to be released in error cases of
iss_net_configure().

Change the return type of iss_net_configure() to void, because it's
not used.

Fixes: f3bf2e96d0e8 ("[PATCH] xtensa: Architecture support for Tensilica Xtensa Part 8")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/xtensa/platforms/iss/network.c