Thread (6 messages) 6 messages, 5 authors, 2024-01-26

Re: crypto: virtio - Less function calls in __virtio_crypto_akcipher_do_req() after error detection

From: Markus Elfring <hidden>
Date: 2024-01-10 07:47:12
Also in: cocci, kernel-janitors, linux-crypto, lkml, llvm, oe-kbuild-all, virtualization

quoted
The kfree() function was called in up to two cases by the
__virtio_crypto_akcipher_do_req() function during error handling
even if the passed variable contained a null pointer.
This issue was detected by using the Coccinelle software.
If the script is short and simple would you mind, in the future,
including it below the fold -- this may help others do similar work down
the line -- Or …
Would you like to take another look at the clarification approach
“Reconsidering kfree() calls for null pointers (with SmPL)”?
https://lore.kernel.org/cocci/6cbcf640-55e5-2f11-4a09-716fe681c0d2@web.de/ (local)
https://sympa.inria.fr/sympa/arc/cocci/2023-03/msg00096.html

Regards,
Markus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help