]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net/smc: fix use of variable in cleared area
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 30 Jan 2019 17:51:08 +0000 (18:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2019 22:45:45 +0000 (14:45 -0800)
commit46ad02229d6b4ee276eb295ca08f039993f323c8
treeba921dc696d6047a9e30805bdb39d2c5dbca42d9
parente5f3aa04dbfd92154f21edfeb7a1676a45918928
net/smc: fix use of variable in cleared area

Do not use pend->idx as index for the arrays because its value is
located in the cleared area. Use the existing local variable instead.
Without this fix the wrong area might be cleared.

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