Message ID | 1383441862-3623-1-git-send-email-xinglin@cs.utah.edu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Applied this to the tree. Thanks! On Sat, 2 Nov 2013, Xing Lin wrote: > When bitmatrix is NULL, this function returns NULL. > > Signed-off-by: Xing Lin <xinglin@cs.utah.edu> > --- > src/osd/ErasureCodePluginJerasure/jerasure.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/osd/ErasureCodePluginJerasure/jerasure.c b/src/osd/ErasureCodePluginJerasure/jerasure.c > index 9efae02..d5752a8 100755 > --- a/src/osd/ErasureCodePluginJerasure/jerasure.c > +++ b/src/osd/ErasureCodePluginJerasure/jerasure.c > @@ -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; > -- > 1.8.3.4 (Apple Git-47) > > -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/src/osd/ErasureCodePluginJerasure/jerasure.c b/src/osd/ErasureCodePluginJerasure/jerasure.c index 9efae02..d5752a8 100755 --- a/src/osd/ErasureCodePluginJerasure/jerasure.c +++ b/src/osd/ErasureCodePluginJerasure/jerasure.c @@ -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;
When bitmatrix is NULL, this function returns NULL. Signed-off-by: Xing Lin <xinglin@cs.utah.edu> --- src/osd/ErasureCodePluginJerasure/jerasure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)