diff options
| author | 2007-06-29 11:37:56 -0700 | |
|---|---|---|
| committer | 2007-07-02 20:48:31 -0700 | |
| commit | 841adfca9c5fc0fec6b1f0b2e5eb7a3b239a7730 (patch) | |
| tree | fcdc834ad623a890a0eeb499c41593615746c706 /include/linux/sysdev.h | |
| parent | mlx4_core: Add new Mellanox device IDs (diff) | |
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 <ralph.campbell@qlogic.com>
Acked-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/linux/sysdev.h')
0 files changed, 0 insertions, 0 deletions
