1. 21 Dec, 2018 2 commits
    • YueHaibing's avatar
      IB/mlx4: Remove set but not used variable 'pd' · e7c4d8e6
      YueHaibing authored
      Fixes gcc '-Wunused-but-set-variable' warning:
      
      drivers/infiniband/hw/mlx4/qp.c: In function '_mlx4_ib_destroy_qp':
      drivers/infiniband/hw/mlx4/qp.c:1612:22: warning:
       variable 'pd' set but not used [-Wunused-but-set-variable]
      
      Fixes: e00b64f7 ("RDMA: Cleanup undesired pd->uobject usage")
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      e7c4d8e6
    • Steve Wise's avatar
      RDMA/iwcm: Don't copy past the end of dev_name() string · d53ec8af
      Steve Wise authored
      We now use dev_name(&ib_device->dev) instead of ib_device->name in iwpm
      messages.  The name field in struct device is a const char *, where as
      ib_device->name is a char array of size IB_DEVICE_NAME_MAX, and it is
      pre-initialized to zeros.
      
      Since iw_cm_map() was using memcpy() to copy in the device name, and
      copying IWPM_DEVNAME_SIZE bytes, it ends up copying past the end of the
      source device name string and copying random bytes.  This results in iwpmd
      failing the REGISTER_PID request from iwcm.  Thus port mapping is broken.
      
      Validate the device and if names, and use strncpy() to inialize the entire
      message field.
      
      Fixes: 896de009 ("RDMA/core: Use dev_name instead of ibdev->name")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
      d53ec8af
  2. 20 Dec, 2018 11 commits
  3. 19 Dec, 2018 25 commits
  4. 18 Dec, 2018 2 commits