qed: Fix memory/entry leak in qed_init_sp_request()
authorDenis Bolotin <denis.bolotin@cavium.com>
Thu, 8 Nov 2018 14:46:08 +0000 (16:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Nov 2018 03:38:18 +0000 (19:38 -0800)
commit39477551df940ddb1339203817de04f5caaacf7a
tree97e1c8ba9311c0cab313245fceef152fb824a3ed
parent0d5b9311baf27bb545f187f12ecfd558220c607d
qed: Fix memory/entry leak in qed_init_sp_request()

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>
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c