]> 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)
commit9d6fe6338816a1ebce59fd5c75c8e911f6737af7
treeba921dc696d6047a9e30805bdb39d2c5dbca42d9
parent057dc3ee2f68e76c3989b84dd8b9f23387d90516
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