net/smc: handle unexpected response types for confirm link
authorKarsten Graul <kgraul@linux.ibm.com>
Sat, 18 Jul 2020 13:06:09 +0000 (15:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Jul 2020 22:30:22 +0000 (15:30 -0700)
commita35fffbf98189ba8359f19073286b2ea816255c5
treeb58e77a5bc1f139d0f4996bc7411e62f2006ffac
parent9b8737788af6c76ef93e3161ee2cdc4ddcc034ca
net/smc: handle unexpected response types for confirm link

A delete link could arrive during confirm link processing. Handle this
situation directly in smc_llc_srv_conf_link() rather than using the
logic in smc_llc_wait() to avoid the unexpected message handling there.

Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Fixes: 1551c95b6124 ("net/smc: final part of add link processing as SMC server")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_llc.c