Re: [PATCH 2/2] MPI: Fix mpi_powm() when exponent is 0 and the result has no limbs

From: David Howells
Date: Thu Nov 24 2016 - 06:35:24 EST


Andrey Ryabinin <ryabinin.a.a@xxxxxxxxx> wrote:

> I'm also made a fix for this yesterday -
> http://lkml.kernel.org/r/1479918484-31952-1-git-send-email-aryabinin@xxxxxxxxxxxxx

I should add a record to the MAINTAINERS file that directs patches to MPI to
keyrings@xxxxxxxxxxxxxxx so that I see things like this.

> The only small difference is that in my the limb space is not
> allocated when it's not needed, i.e. when res->nlimbs == 0.

I guess if nlimbs is 0 then the value is 0, right?

David