]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: Fix system crash during load/unload
authorSelvin Xavier <selvin.xavier@broadcom.com>
Fri, 16 Feb 2018 05:20:12 +0000 (21:20 -0800)
committerDoug Ledford <dledford@redhat.com>
Tue, 20 Feb 2018 16:57:21 +0000 (11:57 -0500)
commit0ec02d92ccd5a67fd088902e2ed13d67db70f571
tree77bdeb1e050fdc1a6e54a2bc765838336c3a5df2
parent3f26c7a36d1f0ced9bb9e2aa6f56e647a2b98659
RDMA/bnxt_re: Fix system crash during load/unload

During driver unload, the driver proceeds with cleanup
without waiting for the scheduled events. So the device
pointers get freed up and driver crashes when the events
are scheduled later.

Flush the bnxt_re_task work queue before starting
device removal.

Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/main.c