linux-stable/drivers/infiniband/hw
Shiraz Saleem 83fb1c89e7 i40iw: Fixes for static checker warnings
Remove NULL check for cm_node->listener in i40iw_accept
as listener is always present at this point.

Remove the check for cm_node->accept_pend and related code
in i40iw_cm_event_connected as the cm_node in this context
is only pertinent to active node and cm_node->accept_pend
is always 0.

This fixes the following smatch warnings,

drivers/infiniband/hw/i40iw/i40iw_cm.c:3691 i40iw_accept()
error: we previously assumed 'cm_node->listener' could be null

drivers/infiniband/hw/i40iw/i40iw_cm.c:4061 i40iw_cm_event_connected()
error: we previously assumed 'cm_node->listener' could be null

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-08-18 14:01:09 -04:00
..
bnxt_re RDMA/bnxt_re: fix spelling mistake: "Deallocte" -> "Deallocate" 2017-08-18 11:31:30 -04:00
cxgb3 IB/cxgb3: Fix error codes in iwch_alloc_mr() 2017-07-20 11:20:49 -04:00
cxgb4 cxgb4: Remove some dead code 2017-08-17 18:06:37 -04:00
hfi1 IB/hfi1: fix spelling mistake in variable name continious 2017-08-18 11:29:22 -04:00
hns IB/hns: Fix for checkpatch.pl comment style warnings 2017-07-17 21:21:29 -04:00
i40iw i40iw: Fixes for static checker warnings 2017-08-18 14:01:09 -04:00
mlx4 IB/mlx4: Fix CM REQ retries in paravirt mode 2017-07-20 11:20:50 -04:00
mlx5 IB/mlx5: Fix a warning message 2017-07-20 11:20:49 -04:00
mthca infiniband: mthca: constify pci_device_id. 2017-08-18 14:01:07 -04:00
nes infiniband: nes: constify pci_device_id. 2017-08-18 14:01:08 -04:00
ocrdma RDMA/ocrdma: Fix error codes in ocrdma_create_srq() 2017-07-20 11:20:49 -04:00
qedr RDMA/qedr: Prevent memory overrun in verbs' user responses 2017-07-20 11:20:50 -04:00
qib IB/qib: fix spelling mistake: "failng" -> "failing" 2017-08-18 11:22:20 -04:00
usnic IB/core: Rename struct ib_ah_attr to rdma_ah_attr 2017-05-01 14:32:43 -04:00
vmw_pvrdma infiniband: pvrdma: constify pci_device_id. 2017-08-18 14:01:08 -04:00
Makefile RDMA/bnxt_re: Add bnxt_re driver build support 2017-02-14 09:51:28 -05:00