]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/async/rdma: Device::last_poll_dev must be positive
authorAmir Vadai <amir@vadai.me>
Sun, 26 Mar 2017 10:24:19 +0000 (13:24 +0300)
committerAdir Lev <adirl@mellanox.com>
Thu, 30 Mar 2017 10:29:08 +0000 (13:29 +0300)
Make Device::last_poll_dev `unsigned` - it could overlap and should not
be negative.
Also, add missing initialization.

Change-Id: I558f02292ae4f5d1ce48d9bcda5047d382604237
Signed-off-by: Amir Vadai <amir@vadai.me>
src/msg/async/rdma/Device.h

index 5e99bf56cca19e4220f09d5c40b8d72d5438c7f2..2a00b51e3334d189314b8bd8f1ed3bf45ea6ea6f 100644 (file)
@@ -137,7 +137,7 @@ class DeviceList {
   int num;
   Device** devices;
 
-  int last_poll_dev;
+  unsigned last_poll_dev = 0;
   struct pollfd *poll_fds;
 
  public: