[PATCH] pstore/zone: rewrite some comments for better understanding

2025-01-17 Thread Eugen Hristev
Rewrite some comments to make it more clear and easier to understand. Signed-off-by: Eugen Hristev --- fs/pstore/zone.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c index ceb5639a0629..5fa2fa2e7aa7 100644 --- a/fs

[PATCH v2] pstore/zone: avoid dereferencing zero sized ptr after init zones

2025-01-10 Thread Eugen Hristev
] pstore_zone: alloc zones failed Signed-off-by: Eugen Hristev --- Changes in v2: - reworked to check for c==0 instead of ZERO_SIZE_PTR as suggested by Kees Cook fs/pstore/zone.c | 5 + 1 file changed, 5 insertions(+) diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c index 694db616663f

[PATCH] pstore/blk: trivial typo fixes

2025-01-01 Thread Eugen Hristev
Fix trivial typos in comments. Fixes: 2a03ddbde1e1 ("pstore/blk: Move verify_size() macro out of function") Fixes: 17639f67c1d6 ("pstore/blk: Introduce backend for block devices") Signed-off-by: Eugen Hristev --- fs/pstore/blk.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH] pstore/zone: avoid dereferencing zero sized ptr after init zones

2024-12-27 Thread Eugen Hristev
] pstore_zone: alloc zones failed Signed-off-by: Eugen Hristev --- fs/pstore/zone.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c index 694db616663f..50a765999b54 100644 --- a/fs/pstore/zone.c +++ b/fs/pstore/zone.c @@ -1217,6 +1217,10 @@ static struct

[PATCH] pstore/zone: fix trivial comment typo

2024-12-24 Thread Eugen Hristev
s/conpressed/compressed Signed-off-by: Eugen Hristev --- fs/pstore/zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c index 694db616663f..a4ee4e04d1cd 100644 --- a/fs/pstore/zone.c +++ b/fs/pstore/zone.c @@ -43,7 +43,7 @@ struct