git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f002a24
)
target/pscsi: Reject cross page boundary case in pscsi_map_sg
author
Asias He
<asias@redhat.com>
Tue, 19 Mar 2013 04:55:16 +0000
(12:55 +0800)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Wed, 20 Mar 2013 00:31:14 +0000
(17:31 -0700)
We can only have one page of data in each sg element, so we can not
cross a page boundary. Fail this case.
The 'while (len > 0 && data_len > 0) {}' loop is not necessary. The loop
can only be executed once.
Signed-off-by: Asias He <asias@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pscsi.c
patch
|
blob
|
history
diff --cc
drivers/target/target_core_pscsi.c
Simple merge