]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
lib/mpi: return error code on dividing by zero
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Thu, 26 Jan 2012 17:13:21 +0000 (19:13 +0200)
committerJames Morris <jmorris@namei.org>
Wed, 1 Feb 2012 13:23:14 +0000 (00:23 +1100)
commite87c5e35a92e045de75fb6ae9846a38bdd0f92bd
treea518be04415fd6b6746493e96b422bfad1cbb10f
parent3cccd1543ab623a5065335bf08350e06ffc788ab
lib/mpi: return error code on dividing by zero

Definitely better to return error code than to divide by zero.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Reviewed-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
lib/mpi/mpi-pow.c