]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/erasurecode: correct one variable name in jerasure_matrix_to_bitmatrix()
authorXing Lin <xinglin@cs.utah.edu>
Sun, 3 Nov 2013 01:24:22 +0000 (19:24 -0600)
committerSage Weil <sage@inktank.com>
Sun, 3 Nov 2013 05:18:36 +0000 (22:18 -0700)
When bitmatrix is NULL, this function returns NULL.

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/ErasureCodePluginJerasure/jerasure.c

index 9efae02e5fb2126a98cdca14697b08502b010026..d5752a8ee517b95cbfd195da688bdb46fb5c0d25 100755 (executable)
@@ -276,7 +276,7 @@ int *jerasure_matrix_to_bitmatrix(int k, int m, int w, int *matrix)
   int rowelts, rowindex, colindex, elt, i, j, l, x;
 
   bitmatrix = talloc(int, k*m*w*w);
-  if (matrix == NULL) { return NULL; }
+  if (bitmatrix == NULL) { return NULL; }
 
   rowelts = k * w;
   rowindex = 0;