IB/mthca: Avoid integer overflow when dealing with profile size
[cascardo/linux.git] / drivers / infiniband / hw / mthca / mthca_profile.h
index 9464180..e76cb62 100644 (file)
@@ -53,7 +53,7 @@ struct mthca_profile {
        int fmr_reserved_mtts;
 };
 
-u64 mthca_make_profile(struct mthca_dev *mdev,
+s64 mthca_make_profile(struct mthca_dev *mdev,
                       struct mthca_profile *request,
                       struct mthca_dev_lim *dev_lim,
                       struct mthca_init_hca_param *init_hca);