ethernet: tundra: free irq when alloc ring failed in tsi108_open()
authorZhengchao Shao <shaozhengchao@huawei.com>
Wed, 9 Nov 2022 04:40:16 +0000 (12:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Nov 2022 08:57:14 +0000 (09:57 +0100)
commit59ec132386a07ac09165f96226fe6fcb44b54b37
treea0c5627ad850a0d67ec942b2e72342b5814d7e83
parentdd7beaec8b48916acd98d01dd24e75e6fdba3d9e
ethernet: tundra: free irq when alloc ring failed in tsi108_open()

[ Upstream commit acce40037041f97baad18142bb253064491ebde3 ]

When alloc tx/rx ring failed in tsi108_open(), it doesn't free irq. Fix
it.

Fixes: 5e123b844a1c ("[PATCH] Add tsi108/9 On Chip Ethernet device driver support")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20221109044016.126866-1-shaozhengchao@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/tundra/tsi108_eth.c