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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:14:25 +0000 (07:14 +0100)
commit2f3121f6e2a560860bce0531721b22258ce265f3
treefb8cafb638f4bfca0ee57d6ca7ceab0026df58ce
parenta22af440349cfa38243ef50c915e0a5a4de59702
net/smc: cancel event worker during device removal

commit ece0d7bd74615773268475b6b64d6f1ebbd4b4c6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/smc/smc_ib.c