]> git.baikalelectronics.ru Git - 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)
commitf17ce44c0f859ed71991a58583f59384834b7c9a
treeba921dc696d6047a9e30805bdb39d2c5dbca42d9
parent137359a1addee254ffc394935cf505d234ddac16
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