From: Sven Verdoolaege Date: Sun, 2 Dec 2012 15:56:50 +0000 (+0100) Subject: isl_mat_transpose: handle NULL input X-Git-Tag: isl-0.11~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac2143d72da8f1e1f35d0870d8ef8b0cd16bda7b;p=platform%2Fupstream%2Fisl.git isl_mat_transpose: handle NULL input Signed-off-by: Sven Verdoolaege --- diff --git a/isl_mat.c b/isl_mat.c index 6cd90e0..cff8123 100644 --- a/isl_mat.c +++ b/isl_mat.c @@ -909,6 +909,9 @@ struct isl_mat *isl_mat_transpose(struct isl_mat *mat) struct isl_mat *transpose = NULL; int i, j; + if (!mat) + return NULL; + if (mat->n_col == mat->n_row) { mat = isl_mat_cow(mat); if (!mat)