mpi/mpi-mpow: NULL dereference on allocation failure
commitfe0e94c5a7e5335ba0d200e7d3e26e9f80cda4b1
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Dec 2011 11:58:26 +0000 (7 13:58 +0200)
committerJames Morris <jmorris@namei.org>
Wed, 7 Dec 2011 13:09:23 +0000 (8 00:09 +1100)
treee11c25e3cecf762931eba576c50a12372039c412
parentde353533753e048b5c4658f0a42365937527ac45
mpi/mpi-mpow: NULL dereference on allocation failure

We can't call mpi_free() on the elements if the first kzalloc() fails.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: James Morris <jmorris@namei.org>
lib/mpi/mpi-mpow.c