[prev in list] [next in list] [prev in thread] [next in thread]
List: kernel-janitors
Subject: Re: [PATCH] crypto: rsa - add a check for allocation failure
From: Herbert Xu <herbert () gondor ! apana ! org ! au>
Date: 2023-10-30 9:25:50
Message-ID: ZT92nv/HG5LBTnND () gondor ! apana ! org ! au
[Download RAW message or body]
On Mon, Oct 30, 2023 at 12:15:19PM +0300, Dan Carpenter wrote:
>
> The checker is not wrong. Kernel policy is that every allocation has
> to be checked for failure. In *current* kernels it won't but we have
> discussed changing this so the policy makes sense.
Nevermind, I misread it as kmalloc(0). mpi_alloc(0) can indeed
fail because it's not allocating nothing.
I'll take this patch.
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic