Re: [RFC v2] Reed-Solomon Code: Update no_eras to the actual number of errors

2020-06-25 Thread Aiden Leong
Hi, You are right. I forgot the return value is number of errors rather than status code. Sorry to bother you. On 6/25/20 6:06 AM, Ferdinand Blomqvist wrote: Hi! On 2020-06-25 00:36:01, Aiden Leong wrote: Corr and eras_pos are updated to actual correction pattern and erasure positions

[RFC v2] Reed-Solomon Code: Update no_eras to the actual number of errors

2020-06-25 Thread Aiden Leong
no_eras, users won't be able to determine the valid length of corr and eras_pos. Signed-off-by: Aiden Leong --- drivers/md/dm-verity-fec.c | 2 +- include/linux/rslib.h | 4 ++-- lib/reed_solomon/decode_rs.c| 20 ++-- lib/reed_solomon/reed_solomon.c

[RFC] Reed-Solomon Code: Update no_eras to the actual number of errors

2020-06-24 Thread Aiden Leong
no_eras, users won't be able to determine the valid length of corr and eras_pos. Signed-off-by: Aiden Leong --- drivers/md/dm-verity-fec.c | 2 +- fs/pstore/ram_core.c| 2 +- include/linux/rslib.h | 4 ++-- lib/reed_solomon/decode_rs.c| 20 ++--

[PATCH v2] GUE: Fix a typo

2020-06-22 Thread Aiden Leong
Fix a typo in gue.h Signed-off-by: Aiden Leong --- include/net/gue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/gue.h b/include/net/gue.h index 3a6595bfa641..e42402f180b7 100644 --- a/include/net/gue.h +++ b/include/net/gue.h @@ -21,7 +21,7

[PATCH] GUE: Fix a typo

2020-06-22 Thread Aiden Leong
Signed-off-by: Aiden Leong --- include/net/gue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/gue.h b/include/net/gue.h index 3a6595bfa641..e42402f180b7 100644 --- a/include/net/gue.h +++ b/include/net/gue.h @@ -21,7 +21,7