Browse Source

icnss2: Use proper flag for kzalloc

Use proper flag to allocate memory.

Change-Id: Icf6a310c127264c09db8567f53372590cae0e81f
CRs-Fixed: 3838568
Lin Bai 9 tháng trước cách đây
mục cha
commit
3a529ce131
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      icnss2/main.c

+ 1 - 1
icnss2/main.c

@@ -282,7 +282,7 @@ int icnss_driver_event_post(struct icnss_priv *priv,
 		return -EINVAL;
 	}
 
-	if (in_interrupt() || irqs_disabled())
+	if (in_interrupt() || !preemptible() || rcu_preempt_depth())
 		gfp = GFP_ATOMIC;
 
 	event = kzalloc(sizeof(*event), gfp);