On Fri, Sep 22, 2023 at 4:40 AM Ma Ke wrote:
>
> To avoid the failure of alloc, we could check the return value of
> kmalloc() and kzalloc().
Thanks, that's a good point, some suggestions below.
And also a question for David Gow whenever he sees this.
>
> Signed-off-by: Ma Ke
> ---
> lib/list-
To avoid the failure of alloc, we could check the return value of
kmalloc() and kzalloc().
Signed-off-by: Ma Ke
---
lib/list-test.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/lib/list-test.c b/lib/list-test.c
index 0cc27de9cec8..70e898976dbf 100644
--- a/lib/list-test.c
+++ b/l