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@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt