Commit c3b25b32e8bef526cca748e1ba023c6bdd705a99

Authored by Linus Torvalds

Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
  [CRYPTO] cts: Init SG tables

Showing 1 changed file Side-by-side Diff

... ... @@ -89,6 +89,9 @@
89 89 if (lastn < 0)
90 90 return -EINVAL;
91 91  
  92 + sg_init_table(sgsrc, 1);
  93 + sg_init_table(sgdst, 1);
  94 +
92 95 memset(s, 0, sizeof(s));
93 96 scatterwalk_map_and_copy(s, src, offset, nbytes, 0);
94 97  
... ... @@ -171,6 +174,9 @@
171 174  
172 175 if (lastn < 0)
173 176 return -EINVAL;
  177 +
  178 + sg_init_table(sgsrc, 1);
  179 + sg_init_table(sgdst, 1);
174 180  
175 181 scatterwalk_map_and_copy(s, src, offset, nbytes, 0);
176 182