qed: Don't free a QP more than once
authorRam Amrani <Ram.Amrani@cavium.com>
Mon, 20 Feb 2017 20:43:32 +0000 (22:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 22:11:54 +0000 (17:11 -0500)
commit300c0d7c232da572cb640f3bc803554f74e08f69
tree65f40cbe0a7bc629b557f74885dd2f7ebd69cfd1
parentc5212b943d4b52a7d9e0d9f747e7ad59c50d31f1
qed: Don't free a QP more than once

If QP is in reset state then there are no resources to free so avoid
freeing any.

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