ceph: Add check returned value on func ceph_calc_ceph_pg.
authormajianpeng <majianpeng@gmail.com>
Fri, 2 Aug 2013 10:14:48 +0000 (18:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:24:25 +0000 (12:24 -0800)
commit01bb1b04a1dd3736d20b859a9bcf3d7509566c1f
tree0fb6583b3c876e89ecea3f89cc94c9522712022e
parent10debbda102fe52eb75ba531b8ee79e98d3b8774
ceph: Add check returned value on func ceph_calc_ceph_pg.

commit 2fbcbff1d6b9243ef71c64a8ab993bc3c7bb7af1 upstream.

Func ceph_calc_ceph_pg maybe failed.So add check for returned value.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/ioctl.c