qed: Fix memory/entry leak in qed_init_sp_request()

[ Upstream commit 39477551df ]

Free the allocated SPQ entry or return the acquired SPQ entry to the free
list in error flows.

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>
This commit is contained in:
Denis Bolotin 2018-11-08 16:46:08 +02:00 • committed by Greg Kroah-Hartman
commit 66473b0ac3