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)
committerSage Weil <sage@inktank.com>
Sat, 10 Aug 2013 00:55:21 +0000 (17:55 -0700)
commit2fbcbff1d6b9243ef71c64a8ab993bc3c7bb7af1
treed06fed7336af28fc14bca3b2c988320ce880e717
parent7ab9b3807097fcb87b0e85a9ad82b12322d9cc63
ceph: Add check returned value on func ceph_calc_ceph_pg.

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>
fs/ceph/ioctl.c