qed: Release CQ resource under lock on failure
authorRam Amrani <Ram.Amrani@cavium.com>
Mon, 20 Feb 2017 20:43:30 +0000 (22:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 22:11:54 +0000 (17:11 -0500)
commit670dde55c6f182b8a159f0484be92b89d82107e1
treef8aca3b123d968cb0afd73df8f41fcceb7fd6b17
parent8676ea8f3f9b7dc93544477821f107004c0366cf
qed: Release CQ resource under lock on failure

The CQ resource pool is protected by a spin lock. When a CQ creation
fails it now deallocates under that lock as well.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_roce.c