android_kernel_xiaomi_sm8350/drivers/infiniband/hw/mthca
Olaf Kirch 2c78853472 IB/mthca: Return proper error codes from mthca_fmr_alloc()
If the allocation of the MTT or the mailbox failed, mthca_fmr_alloc()
would return 0 (success) no matter what. This leads to crashes a
little down the road, when we try to dereference eg mr->mtt, which was
really ERR_PTR(-Ewhatever).

Signed-off-by: Olaf Kirch <olaf.kirch@oracle.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-02-04 20:20:44 -08:00
..
Kconfig
Makefile
mthca_allocator.c
mthca_av.c
mthca_catas.c
mthca_cmd.c IB/mthca: Don't read reserved fields in mthca_QUERY_ADAPTER() 2008-02-04 20:20:43 -08:00
mthca_cmd.h
mthca_config_reg.h
mthca_cq.c IB/mthca: Avoid alignment traps when writing doorbells 2007-10-15 20:17:27 -07:00
mthca_dev.h IB/mthca: Remove MSI support as scheduled 2008-01-25 14:15:33 -08:00
mthca_doorbell.h IB/mthca: Avoid alignment traps when writing doorbells 2007-10-15 20:17:27 -07:00
mthca_eq.c IB/mthca: Remove MSI support as scheduled 2008-01-25 14:15:33 -08:00
mthca_mad.c
mthca_main.c IB: Avoid marking __devinitdata as const 2008-02-04 20:20:44 -08:00
mthca_mcg.c
mthca_memfree.c SG: Change sg_set_page() to take length and offset argument 2007-10-24 11:20:47 +02:00
mthca_memfree.h
mthca_mr.c IB/mthca: Return proper error codes from mthca_fmr_alloc() 2008-02-04 20:20:44 -08:00
mthca_pd.c
mthca_profile.c
mthca_profile.h
mthca_provider.c IB/mthca: Don't read reserved fields in mthca_QUERY_ADAPTER() 2008-02-04 20:20:43 -08:00
mthca_provider.h
mthca_qp.c IB/ib_mthca: Pre-link receive WQEs in Tavor mode 2008-02-04 20:20:44 -08:00
mthca_reset.c
mthca_srq.c IB/ib_mthca: Pre-link receive WQEs in Tavor mode 2008-02-04 20:20:44 -08:00
mthca_uar.c
mthca_user.h
mthca_wqe.h