summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/misc/cxl/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/misc/cxl/main.c')
-rw-r--r--kernel/drivers/misc/cxl/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/misc/cxl/main.c b/kernel/drivers/misc/cxl/main.c
index 8ccddceea..de350dd46 100644
--- a/kernel/drivers/misc/cxl/main.c
+++ b/kernel/drivers/misc/cxl/main.c
@@ -73,7 +73,7 @@ static inline void cxl_slbia_core(struct mm_struct *mm)
spin_lock(&adapter->afu_list_lock);
for (slice = 0; slice < adapter->slices; slice++) {
afu = adapter->afu[slice];
- if (!afu->enabled)
+ if (!afu || !afu->enabled)
continue;
rcu_read_lock();
idr_for_each_entry(&afu->contexts_idr, ctx, id)