projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
IB/mthca: Avoid integer overflow when dealing with profile size
[cascardo/linux.git]
/
drivers
/
infiniband
/
hw
/
mthca
/
mthca_profile.h
diff --git
a/drivers/infiniband/hw/mthca/mthca_profile.h
b/drivers/infiniband/hw/mthca/mthca_profile.h
index
9464180
..
e76cb62
100644
(file)
--- a/
drivers/infiniband/hw/mthca/mthca_profile.h
+++ b/
drivers/infiniband/hw/mthca/mthca_profile.h
@@
-53,7
+53,7
@@
struct mthca_profile {
int fmr_reserved_mtts;
};
-
u
64 mthca_make_profile(struct mthca_dev *mdev,
+
s
64 mthca_make_profile(struct mthca_dev *mdev,
struct mthca_profile *request,
struct mthca_dev_lim *dev_lim,
struct mthca_init_hca_param *init_hca);