]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b12957020e8136fd066d40b4db5184ad19f077d
tree65f40cbe0a7bc629b557f74885dd2f7ebd69cfd1
parent9ecdb81e79dd292aaf365979fcf325c58817ebe5
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