Commit 172129db authored by Chengchang Tang's avatar Chengchang Tang Committed by Jeiwei Li
Browse files

RDMA/hns: Fix unregistering device and accessing to debugfs concurrently

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I87LCF



--------------------------------------------------------------------------

When unregistering the device or destroying of ucontext and accessing
dca debugfs concurrently, there may be a problem of accessing a null
pointer.

This patch fixes it by delaying the pointer assignment to null until
debugfs has been unregistered.

Fixes: a2178118 ("RDMA/hns: Add debugfs support for DCA")
Signed-off-by: default avatarChengchang Tang <tangchengchang@huawei.com>
parent 4ad79d38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment