]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/mthca: Fix allocation of ICM chunks in coherent memory
authorRoland Dreier <rolandd@cisco.com>
Fri, 16 Feb 2007 21:57:33 +0000 (13:57 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 16 Feb 2007 21:57:33 +0000 (13:57 -0800)
commit11282b32a4ed7bb5fc390c83a1d6b9bc8017882c
tree241e453062f9acae34fc00625097491c3e5f83e5
parentfc89afce349a70f73d9c0b6d91a15c4913f071a0
IB/mthca: Fix allocation of ICM chunks in coherent memory

The change to allow allocating ICM chunks from coherent memory did not
increment the count of sg entries properly, so a chunk that required
more than allocation would not be mapped properly by the HCA.

Fix this by adding the missing increment of chunk->nsg.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_memfree.c