Thread (6 messages) 6 messages, 4 authors, 2021-04-14

Re: [PATCH][next] KEYS: trusted: Fix missing null return from kzalloc call

From: Jarkko Sakkinen <jarkko@kernel.org>
Date: 2021-04-14 11:07:49
Also in: kernel-janitors, keyrings, linux-integrity, lkml

On Mon, Apr 12, 2021 at 05:01:01PM +0100, Colin King wrote:
From: Colin Ian King <redacted>

The kzalloc call can return null with the GFP_KERNEL flag so
add a null check and exit via a new error exit label. Use the
same exit error label for another error path too.

Addresses-Coverity: ("Dereference null return value")
Fixes: 830027e2cb55 ("KEYS: trusted: Add generic trusted keys framework")
Signed-off-by: Colin Ian King <redacted>
 
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>

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