From: Michael S. Tsirkin Date: Tue, 27 Sep 2005 04:12:26 +0000 (-0700) Subject: [IB] mthca: Round up number of slots in HCA context memory table X-Git-Tag: v2.6.14-rc3~76^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f02b16bea2d8411b21a531fc381e066985895387;p=pandora-kernel.git [IB] mthca: Round up number of slots in HCA context memory table When allocating a table for mem-free HCA context, don't assume that obj_size * nobj is an even multiple of MTHCA_TABLE_CHUNK_SIZE. In particular, make sure we allocate at least one slot even if the table is smaller than MTHCA_TABLE_CHUNK_SIZE. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed