qed: Fix potential memory corruption
authorSagiv Ozeri <sagiv.ozeri@cavium.com>
Thu, 8 Nov 2018 14:46:11 +0000 (16:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Nov 2018 03:38:19 +0000 (19:38 -0800)
commitfa5c448d98f0df660bfcad3dd5facc027ef84cd3
treeb3302708cdb9cce6cb78aeb27d785ccfd17acd2a
parentfb5e7438e7a3c8966e04ccb0760170e9e06f3699
qed: Fix potential memory corruption

A stuck ramrod should be deleted from the completion_pending list,
otherwise it will be added again in the future and corrupt the list.

Return error value to inform that ramrod is stuck and should be deleted.

Signed-off-by: Sagiv Ozeri <sagiv.ozeri@cavium.com>
Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_spq.c