lib: sbi: Fix sbi_strnlen wrong count decrement
PATCH 1/1 lib: sbi: Fix sbi_strnlen wrong count decrement
count(maxlen) should not be decremented here
--- lib/sbi/sbi_string.c | 1 - 1 file changed, 1 deletion(-)
lib/sbi/sbi_string.c +0 -1
@@ -59,7 +59,6 @@ size_t sbi_strnlen(const char *str, size_t count)while (*str !='\0' && ret < count) { ret++; str++; - count--; }return ret;
Signature · 1 line
2.34.1
PATCH 1/1 lib: sbi: Fix sbi_strnlen wrong count decrement
Quoted 5 lines · Rahul Pathak
count(maxlen) should not be decremented here
Fixes 1901e8a287bc ("platform: Add minimal libc support.")Signed-off-by Rahul Pathak <[email protected]>
This one slipped through our reviews. Thanks for catching.
Regards,
Anup
Quoted 24 lines
--- lib/sbi/sbi_string.c | 1 - 1 file changed, 1 deletion(-)lib/sbi/sbi_string.c +0
-2@@ -59,7 +59,6 @@ size_t sbi_strnlen(const char *str, size_t count)while (*str !='\0' && ret < count) { ret++; str++; - count--; }return ret; --2.34.1
--
opensbi mailing list
opensbi at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi
PATCH 1/1 lib: sbi: Fix sbi_strnlen wrong count decrement
Quoted 11 lines · Anup Patel
Quoted 5 lines · Rahul Pathak
count(maxlen) should not be decremented here
Fixes 1901e8a287bc ("platform: Add minimal libc support.")Signed-off-by Rahul Pathak <[email protected]>This one slipped through our reviews. Thanks for catching.
Reviewed-by Anup Patel <[email protected]>
Applied this patch immediately since it affects FDT parsing of certain DT properties (such as "reg-names").
Regards,
Anup
Quoted 28 lines
Regards,
AnupQuoted 24 lines
--- lib/sbi/sbi_string.c | 1 - 1 file changed, 1 deletion(-)lib/sbi/sbi_string.c +0
-2@@ -59,7 +59,6 @@ size_t sbi_strnlen(const char *str, size_t count)while (*str !='\0' && ret < count) { ret++; str++; - count--; }return ret; --2.34.1
--
opensbi mailing list
opensbi at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi