https://github.com/torvalds/linux
Revision 841adfca9c5fc0fec6b1f0b2e5eb7a3b239a7730 authored by Ralph Campbell on 29 June 2007, 18:37:56 UTC, committed by Roland Dreier on 03 July 2007, 03:48:31 UTC
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>
1 parent 786f238
History
Tip revision: 841adfca9c5fc0fec6b1f0b2e5eb7a3b239a7730 authored by Ralph Campbell on 29 June 2007, 18:37:56 UTC
IPoIB/cm: Partial error clean up unmaps wrong address
Tip revision: 841adfc
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 572 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 89.3 KB
Kbuild -rw-r--r-- 1.5 KB
MAINTAINERS -rw-r--r-- 87.8 KB
Makefile -rw-r--r-- 49.2 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top