From: Ralph Campbell Date: Fri, 29 Jun 2007 18:37:56 +0000 (-0700) Subject: IPoIB/cm: Partial error clean up unmaps wrong address X-Git-Tag: v2.6.22~44^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=841adfca9c5fc0fec6b1f0b2e5eb7a3b239a7730;p=pandora-kernel.git IPoIB/cm: Partial error clean up unmaps wrong address If a page can't be allocated for the frag list of a skb, the code to unmap the partially allocated list is off by one. For exaple, if 'frags' equals one, i == 0, and the alloc_page() fails, then the old loop would have unmapped mapping[1] which is uninitialized. The same would happen if the call to ib_dma_map_page() failed. Signed-off-by: Ralph Campbell Acked-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed