]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Fri, 25 Nov 2022 16:42:07 +0000 (17:42 +0100)
commitd96428ef4c610a974c2425dfe80b485ad01ac6da
tree85966dd3c499715e6b673ba5573a1c1ea4088766
parent663da20bab515698ea8c5c87ef62a0647ed3603d
ethernet: tundra: free irq when alloc ring failed in tsi108_open()

[ Upstream commit a1a416d313e5b9935150d1f83df81e4f287930c5 ]

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

Fixes: a7cb01343722 ("[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