Target/sbc: Initialize COMPARE_AND_WRITE write_sg scatterlist
authorMartin Svec <martin.svec@zoner.cz>
Tue, 1 Apr 2014 14:03:02 +0000 (16:03 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 7 Apr 2014 08:48:53 +0000 (01:48 -0700)
commita1e1774c6dfa3a524dd8df51ca95185fe5ef3247
treefea7c7f70242f729320c22477f661be830bb0be8
parent9d2e59f2a778328a41771fe9a0098dadbc4314ba
Target/sbc: Initialize COMPARE_AND_WRITE write_sg scatterlist

When compiled with CONFIG_DEBUG_SG set, uninitialized SGL leads
to BUG() in compare_and_write_callback().

Signed-off-by: Martin Svec <martin.svec@zoner.cz>
Cc: <stable@vger.kernel.org> #3.12+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c