mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] pstore/zone: Remove redundant check for total size
@ 2021-09-24  8:59 Zhenguo Zhao
  2021-09-24  8:59 ` [PATCH 2/3] pstore: Add pstore back-end choice method in kconfig Zhenguo Zhao
  2021-09-24  8:59 ` [PATCH 3/3] pstore: Modify kconfig to align text Zhenguo Zhao
  0 siblings, 2 replies; 7+ messages in thread
From: Zhenguo Zhao @ 2021-09-24  8:59 UTC (permalink / raw)
  To: nianfu.bai, keescook, anton, ccross, tony.luck; +Cc: linux-kernel

From: Zhenguo Zhao <Zhenguo.Zhao1@unisoc.com>

The macro check_size contains 4096 size check for total size.

check_size(total_size, 4096)

Signed-off-by: Zhenguo Zhao <Zhenguo.Zhao1@unisoc.com>
---
 fs/pstore/zone.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c
index 7c8f8fe..93a770c 100644
--- a/fs/pstore/zone.c
+++ b/fs/pstore/zone.c
@@ -1295,10 +1295,6 @@ int register_pstore_zone(struct pstore_zone_info *info)
 	int err = -EINVAL;
 	struct psz_context *cxt = &pstore_zone_cxt;
 
-	if (info->total_size < 4096) {
-		pr_warn("total_size must be >= 4096\n");
-		return -EINVAL;
-	}
 	if (info->total_size > SZ_128M) {
 		pr_warn("capping size to 128MiB\n");
 		info->total_size = SZ_128M;
-- 
1.9.1


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 1/3] pstore/zone: Remove redundant check for total size
@ 2021-10-29  6:51 Zhenguo Zhao
  2021-10-29  6:51 ` [PATCH 2/3] pstore: Add pstore back-end choice method in kconfig Zhenguo Zhao
  0 siblings, 1 reply; 7+ messages in thread
From: Zhenguo Zhao @ 2021-10-29  6:51 UTC (permalink / raw)
  To: nianfu.bai, keescook, anton, ccross, tony.luck; +Cc: linux-kernel

From: Zhenguo Zhao <Zhenguo.Zhao1@unisoc.com>

The macro check_size contains 4096 size check for total size.

check_size(total_size, 4096)

Signed-off-by: Zhenguo Zhao <Zhenguo.Zhao1@unisoc.com>
---
 fs/pstore/zone.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c
index 7c8f8fe..93a770c 100644
--- a/fs/pstore/zone.c
+++ b/fs/pstore/zone.c
@@ -1295,10 +1295,6 @@ int register_pstore_zone(struct pstore_zone_info *info)
 	int err = -EINVAL;
 	struct psz_context *cxt = &pstore_zone_cxt;
 
-	if (info->total_size < 4096) {
-		pr_warn("total_size must be >= 4096\n");
-		return -EINVAL;
-	}
 	if (info->total_size > SZ_128M) {
 		pr_warn("capping size to 128MiB\n");
 		info->total_size = SZ_128M;
-- 
1.9.1


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 1/3] pstore/zone: Remove redundant check for total size
@ 2021-09-03 11:27 Zhenguo Zhao
  2021-09-03 11:27 ` [PATCH 2/3] pstore: Add pstore back-end choice method in kconfig Zhenguo Zhao
  0 siblings, 1 reply; 7+ messages in thread
From: Zhenguo Zhao @ 2021-09-03 11:27 UTC (permalink / raw)
  To: nianfu.bai, keescook, anton, ccross, tony.luck; +Cc: linux-kernel

From: Zhenguo Zhao <Zhenguo.Zhao1@unisoc.com>

The macro check_size contains 4096 size check for total size.

check_size(total_size, 4096)

Signed-off-by: Zhenguo Zhao <Zhenguo.Zhao1@unisoc.com>
---
 fs/pstore/zone.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c
index 7c8f8fe..93a770c 100644
--- a/fs/pstore/zone.c
+++ b/fs/pstore/zone.c
@@ -1295,10 +1295,6 @@ int register_pstore_zone(struct pstore_zone_info *info)
 	int err = -EINVAL;
 	struct psz_context *cxt = &pstore_zone_cxt;
 
-	if (info->total_size < 4096) {
-		pr_warn("total_size must be >= 4096\n");
-		return -EINVAL;
-	}
 	if (info->total_size > SZ_128M) {
 		pr_warn("capping size to 128MiB\n");
 		info->total_size = SZ_128M;
-- 
1.9.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-01  9:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-24  8:59 [PATCH 1/3] pstore/zone: Remove redundant check for total size Zhenguo Zhao
2021-09-24  8:59 ` [PATCH 2/3] pstore: Add pstore back-end choice method in kconfig Zhenguo Zhao
2021-09-24  8:59 ` [PATCH 3/3] pstore: Modify kconfig to align text Zhenguo Zhao
  -- strict thread matches above, loose matches on Subject: below --
2021-10-29  6:51 [PATCH 1/3] pstore/zone: Remove redundant check for total size Zhenguo Zhao
2021-10-29  6:51 ` [PATCH 2/3] pstore: Add pstore back-end choice method in kconfig Zhenguo Zhao
2021-10-29 14:30   ` Kees Cook
2021-11-01  9:19     ` 赵振国
2021-09-03 11:27 [PATCH 1/3] pstore/zone: Remove redundant check for total size Zhenguo Zhao
2021-09-03 11:27 ` [PATCH 2/3] pstore: Add pstore back-end choice method in kconfig Zhenguo Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®