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)
commit7689427e238d69c03fe6a2a9ebc67f72d9c7a877
treea90d0fe885caa8616aa4d0aa1658031d24230be1
parent758145c84fe18ec98bc7869a2c9a09e17abde3c9
xtensa: iss: fix handling error cases in iss_net_configure()

[ Upstream commit 628ccfc8f5f79dd548319408fcc53949fe97b258 ]

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: 7282bee78798 ("[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