tizen: Use unique directory prefix for baselibs packages
[platform/kernel/linux-rpi.git] / crypto / rsa.c
index c79613c..b9cd11f 100644 (file)
@@ -220,6 +220,8 @@ static int rsa_check_exponent_fips(MPI e)
        }
 
        e_max = mpi_alloc(0);
+       if (!e_max)
+               return -ENOMEM;
        mpi_set_bit(e_max, 256);
 
        if (mpi_cmp(e, e_max) >= 0) {