]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: use after free fix in smc_wr_tx_put_slot()
authorUrsula Braun <ursula.braun@linux.ibm.com>
Tue, 20 Nov 2018 15:46:43 +0000 (16:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Nov 2018 00:14:56 +0000 (16:14 -0800)
commit794430fea8621d98d6320b27cef5403e214f1439
tree7325b43e2c0690f4f0944ae97096fda4cadefade
parent37b3d283c660419286aaa1b9adc59b85b108c45c
net/smc: use after free fix in smc_wr_tx_put_slot()

In smc_wr_tx_put_slot() field pend->idx is used after being
cleared. That means always idx 0 is cleared in the wr_tx_mask.
This results in a broken administration of available WR send
payload buffers.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_wr.c