d8ac6e9a35
So far the debug-shell in initfs works. The device uses dynamic partitions, so that has to be figured out to get a proper rootfs. One thing to look out for is that mount_subpartitions task in initfs hangs, so pmos_boot=sth was added to kernel cmdline to skip it. This is also related to dynamic partitions, anyway. [ci:skip-build] Already built on CI
29 lines
983 B
Diff
29 lines
983 B
Diff
From 672029f8923fd77543044cfcf680b2c0adc226dd Mon Sep 17 00:00:00 2001
|
|
From: Iskren Chernev <me@iskren.info>
|
|
Date: Mon, 22 Feb 2021 19:24:04 +0200
|
|
Subject: [PATCH 6/6] Suppress error about static buffer overflow
|
|
|
|
There is a check just before the function call to ensure there is enough
|
|
space.
|
|
|
|
Signed-off-by: Iskren Chernev <me@iskren.info>
|
|
---
|
|
drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c b/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c
|
|
index 1b900a27173be..d1e40689709ad 100644
|
|
--- a/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c
|
|
+++ b/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c
|
|
@@ -2253,7 +2253,7 @@ static ssize_t ipa_debugfs_enable_disable_drop_stats(struct file *file,
|
|
goto bail;
|
|
}
|
|
|
|
- missing = copy_from_user(dbg_buff, ubuf, count);
|
|
+ missing = _copy_from_user(dbg_buff, ubuf, count);
|
|
if (missing) {
|
|
ret = -EFAULT;
|
|
goto bail;
|
|
--
|
|
2.30.1
|
|
|