소스 검색

icnss2: Use proper flag for kzalloc

Use proper flag to allocate memory.

Change-Id: Icf6a310c127264c09db8567f53372590cae0e81f
CRs-Fixed: 3838568
Lin Bai 9 달 전
부모
커밋
3a529ce131
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);