]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
libceph: Avoiding divide by zero 18818/head
authoramitkuma <amitkuma@redhat.com>
Wed, 8 Nov 2017 18:32:39 +0000 (00:02 +0530)
committeramitkuma <amitkuma@redhat.com>
Mon, 20 Nov 2017 13:50:18 +0000 (19:20 +0530)
commit11a473de8f91835a110272943f36e4ad9410906e
tree286b1bc0fa7d86b02c28714344e0943ddd980ae2
parentf71a604fed2d5fb67a87064cfbd4af6717886ad4
libceph: Avoiding divide by zero

Fixes the coverity issue:
CID 1405270 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)
2. divide_by_zero: In function call ll_get_stripe_osd,
division by expression l.stripe_count which may be zero has
undefined behavior.

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
src/client/Client.cc