projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d7d2f6
)
IB/mthca: check return value in mthca_dev_lim call
author
Jack Morgenstein
<jackm@mellanox.co.il>
Fri, 6 Jan 2006 00:12:01 +0000
(16:12 -0800)
committer
Roland Dreier
<rolandd@cisco.com>
Fri, 6 Jan 2006 00:12:01 +0000
(16:12 -0800)
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>
drivers/infiniband/hw/mthca/mthca_main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mthca/mthca_main.c
b/drivers/infiniband/hw/mthca/mthca_main.c
index 6f94b25f3acd2ec15fda43cb337164ecb0ea7ccd..8b00d9a0f6f4b3d580f187edddb4bea4cddadcc5 100644
(file)
--- 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;