net/smc: drop out-of-flow llc response messages
authorKarsten Graul <kgraul@linux.ibm.com>
Sat, 18 Jul 2020 13:06:13 +0000 (15:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jul 2020 22:30:22 +0000 (15:30 -0700)
commit2ff0867851a21ea1ccb0c275ae1df2fe7787e1b9
treeddcaae12bfb4f1b80b2c62502d20f9ac6227f535
parent63673597cca93ef6fa12414933da01d5806547af
net/smc: drop out-of-flow llc response messages

To be save from unexpected or late llc response messages check if the
arrived message fits to the current flow type and drop out-of-flow
messages. And drop it when there is already a response assigned to
the flow.

Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Fixes: ef79d439cd12 ("net/smc: process llc responses in tasklet context")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_llc.c