Target/sbc: Don't use sg as iterator in sbc_verify_read
authorSagi Grimberg <sagig@mellanox.com>
Sun, 23 Feb 2014 12:20:08 +0000 (14:20 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Feb 2014 00:35:32 +0000 (16:35 -0800)
commitfc272ec7a2dfe002b823c78f8ef0eb88042e2762
treef6eb0a8ba75f656c042816f971316deb8ee3cf80
parent94387aa7cec8c5386b405b852cf3e5be38456fc7
Target/sbc: Don't use sg as iterator in sbc_verify_read

Because then this sg is passed to sbc_copy_prot which will
hit a protection fault in cases we have more than a single sg.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c