linux/drivers/infiniband/hw/mthca
Leon Romanovsky a43402af1e IB/mthca: Check validity of output parameter pointer
The mthca driver didn't check supplied pointer to functions
mthca_cmd_poll() and mthca_cmd_wait(). This caused to the following
smatch errors:

drivers/infiniband/hw/mthca/mthca_cmd.c:371 mthca_cmd_poll() error: we previously assumed 'out_param' could be null (see line 353)
drivers/infiniband/hw/mthca/mthca_cmd.c:454 mthca_cmd_wait() error: we previously assumed 'out_param' could be null (see line 432)

In reality all callers of these functions are setting out_is_imm
flag are providing pointer too. However it is better to check
again to remove smatch errors to achieve warning free subsystem.

Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-04-21 12:29:31 -04:00
..
Kconfig
Makefile
mthca_allocator.c
mthca_av.c IB/mthca: Replace pci_pool_alloc by pci_pool_zalloc 2016-12-14 13:58:39 -05:00
mthca_catas.c
mthca_cmd.c IB/mthca: Check validity of output parameter pointer 2017-04-21 12:29:31 -04:00
mthca_cmd.h
mthca_config_reg.h
mthca_cq.c
mthca_dev.h
mthca_doorbell.h
mthca_eq.c
mthca_mad.c IB/{core,hw}: Add constant for node_desc 2016-10-07 16:54:34 -04:00
mthca_main.c IB/mthca: switch to pci_alloc_irq_vectors 2017-02-19 09:18:45 -05:00
mthca_mcg.c
mthca_memfree.c mm: replace get_user_pages() write/force parameters with gup_flags 2016-10-19 08:11:43 -07:00
mthca_memfree.h
mthca_mr.c
mthca_pd.c
mthca_profile.c
mthca_profile.h
mthca_provider.c This is a tree wide change and has been kept separate for that reason. 2017-02-25 13:45:43 -08:00
mthca_provider.h
mthca_qp.c
mthca_reset.c IB/mthca: Remove debug prints after allocation failure 2016-12-03 13:12:52 -05:00
mthca_srq.c
mthca_uar.c
mthca_user.h
mthca_wqe.h