diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-23 02:04:41 +0400 | 
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-23 02:04:41 +0400 | 
| commit | 61b80086a525c8a6081257ae40da5dee2bcaee16 (patch) | |
| tree | 675da35e4c03be3a5ca17bf6430e5b51dfed6296 /lib/mpi/mpi-pow.c | |
| parent | a5f17d1f4c2831b9b9bf8b1a537cdbac995d6e13 (diff) | |
| parent | 230f984662d7e0e4a9597c665fd4f53130666e7d (diff) | |
| download | linux-61b80086a525c8a6081257ae40da5dee2bcaee16.tar.xz | |
Merge branch 'entry-macro-cleanup' of git://sources.calxeda.com/kernel/linux into for-armsoc
Diffstat (limited to 'lib/mpi/mpi-pow.c')
| -rw-r--r-- | lib/mpi/mpi-pow.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/mpi/mpi-pow.c b/lib/mpi/mpi-pow.c index b04a3cf80080..67f3e79af914 100644 --- a/lib/mpi/mpi-pow.c +++ b/lib/mpi/mpi-pow.c @@ -59,7 +59,7 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod)  	ep = exp->d;  	if (!msize) -		msize = 1 / msize;	/* provoke a signal */ +		return -EINVAL;  	if (!esize) {  		/* Exponent is zero, result is 1 mod MOD, i.e., 1 or 0 | 
