ceph: fix divide-by-zero in __validate_layout()
authorYan, Zheng <zyan@redhat.com>
Tue, 14 Oct 2014 07:38:01 +0000 (15:38 +0800)
committerSage Weil <sage@redhat.com>
Tue, 14 Oct 2014 19:57:05 +0000 (12:57 -0700)
commit0bc62284ee3f2a228c64902ed818b6ba8e04159b
tree57217cc15af14a00b0ac6adaede8fd7a819c5c0f
parent792c3a914910bd34302c5345578f85cfcb5e2c01
ceph: fix divide-by-zero in __validate_layout()

The 'stripe_unit' field is 64 bits, casting it to 32 bits can result zero.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/ioctl.c