소스 검색

msm: ipa: Fix compilation error

Change the syntax of condition to fix compilation error.

Signed-off-by: Rishabh Garg <[email protected]>
Rishabh Garg 4 년 전
부모
커밋
e6060ecc44
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c

+ 1 - 1
drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c

@@ -2248,7 +2248,7 @@ static ssize_t ipa_debugfs_enable_disable_drop_stats(struct file *file,
 	ssize_t ret;
 
 	mutex_lock(&ipa3_ctx->lock);
-	if (sizeof(dbg_buff) < count + 1) {
+	if (count >= sizeof(dbg_buff)) {
 		ret = -EFAULT;
 		goto bail;
 	}