Context: Our codebase uses a lot of malloc without error handling in pure C style.
One proposal: like the Linux kernel (e.g., mux.c)
parent_names = kcalloc(num_parents, sizeof(char *), GFP_KERNEL);
if (!parent_names)
goto cleanup;
cleanup:
kfree(parent_names);
Consider this when reviewing PR #184: Is it necessary at this stage?
Context: Our codebase uses a lot of
mallocwithout error handling in pure C style.One proposal: like the Linux kernel (e.g., mux.c)
Consider this when reviewing PR #184: Is it necessary at this stage?