mm: Fix signal SIGFPE in slabinfo.c.
authormajianpeng <majianpeng@gmail.com>
Tue, 26 Jun 2012 01:30:31 +0000 (09:30 +0800)
committerPekka Enberg <penberg@kernel.org>
Mon, 2 Jul 2012 20:11:14 +0000 (23:11 +0300)
commit4b57ad939263935e4e3aec4d74a11dd02a3421e4
tree3c29075138935c378e0b014d695c0d2725a701b5
parenta164f89628fa813a2b012ec033625e9e507c29bb
mm: Fix signal SIGFPE in slabinfo.c.

In function slab_stats(), if total_free is equal zero, it will error.
So fix it.

Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/vm/slabinfo.c