]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c058a39983c533bd45a22597ed3b980d62870e7
treeb3302708cdb9cce6cb78aeb27d785ccfd17acd2a
parentb70bd0d5ef79c089c24cf01e94db4792319a17e0
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