https://github.com/torvalds/linux
Revision c9eeb248f3b44939532a9716bc06413383aa5d63 authored by Boaz Harrosh on 24 September 2008, 09:00:22 UTC, committed by James Bottomley on 28 September 2008, 22:10:40 UTC
The current sg list traversal logic for the continuation entries
doesn't advance the list pointer once all seven slots are used, so the
next continuation entry (if there is one) wrongly begins again at the
start of the sg list.

Fix by advancing the sg pointer after the for_each_sg().

Reported-by: Meelis Roos <mroos@ut.ee>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent 44ea91c
History
Tip revision: c9eeb248f3b44939532a9716bc06413383aa5d63 authored by Boaz Harrosh on 24 September 2008, 09:00:22 UTC
[SCSI] qlogicpti: fix sg list traversal error in continuation entries
Tip revision: c9eeb24
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.7 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 99.8 KB
Makefile -rw-r--r-- 55.4 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top