qed: Fix PTT leak in qed_drain()
authorDenis Bolotin <denis.bolotin@cavium.com>
Mon, 12 Nov 2018 10:50:20 +0000 (12:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:18:47 +0000 (09:18 +0100)
commit0f1c847db352a87f9974aa1869ca3e6f26b621f7
treecf9c2864cce0a507ac1241d43b26de5bfaaf8de0
parentfd358f42a60d85798b6d4715cd936b438fa2cc3e
qed: Fix PTT leak in qed_drain()

[ Upstream commit 9aaa4e8ba12972d674caeefbc5f88d83235dd697 ]

Release PTT before entering error flow.

Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com>
Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/qlogic/qed/qed_main.c