Re: [PATCH v2] i2c: cp2615: handle allocation failure
Markus Elfring <[email protected]>
| Newsgroups | org.kernel.vger.kernel-janitors,org.kernel.vger.linux-i2c,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
> Check the result of kzalloc_obj() and return -ENOMEM > when the allocation fails instead of passing a NULL pointer > to the message initialization helpers, which would return -EINVAL. * How do you think about to add any tags (like “Fixes” and “Cc”) accordingly? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.2#n145 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst?h=v7.2#n34 * How do you think about to increase the application of scope-based resource management? Regards, Markus