net/smc: cancel event worker during device removal
authorKarsten Graul <kgraul@linux.ibm.com>
Tue, 10 Mar 2020 08:33:30 +0000 (09:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 22:40:33 +0000 (15:40 -0700)
commitece0d7bd74615773268475b6b64d6f1ebbd4b4c6
treef81d38d1ffb862c1627f32b9aab0b5678d4b0df2
parent60380488e4e0b95e9e82aa68aa9705baa86de84c
net/smc: cancel event worker during device removal

During IB device removal, cancel the event worker before the device
structure is freed.

Fixes: a4cf0443c414 ("smc: introduce SMC as an IB-client")
Reported-by: syzbot+b297c6825752e7a07272@syzkaller.appspotmail.com
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_ib.c