diff options
author | Jack Morgenstein <jackm@mellanox.co.il> | 2006-01-05 16:12:01 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-01-05 16:12:01 -0800 |
commit | aa2f9367790ad81ef51d3f667124227ca3003d3b (patch) | |
tree | cc204dc5ffe3e9eda77ab5d2a1b5827e809f00bb /drivers/infiniband/hw/mthca | |
parent | 1d7d2f6f476cf7aa65f9f740a6c932fb75608110 (diff) |
IB/mthca: check return value in mthca_dev_lim call
Check error return on call to mthca_dev_lim for Tavor
(as is done for memfree).
Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_main.c b/drivers/infiniband/hw/mthca/mthca_main.c index 6f94b25f3ac..8b00d9a0f6f 100644 --- a/drivers/infiniband/hw/mthca/mthca_main.c +++ b/drivers/infiniband/hw/mthca/mthca_main.c @@ -261,6 +261,10 @@ static int __devinit mthca_init_tavor(struct mthca_dev *mdev) } err = mthca_dev_lim(mdev, &dev_lim); + if (err) { + mthca_err(mdev, "QUERY_DEV_LIM command failed, aborting.\n"); + goto err_disable; + } profile = default_profile; profile.num_uar = dev_lim.uar_size / PAGE_SIZE; |