Skip to content

Commit

Permalink
media: staging: atomisp: sh_css_calloc shall return a pointer to the …
Browse files Browse the repository at this point in the history
…allocated space

The calloc function returns either a null pointer or a pointer to the
allocated space. Add the second case that is missed.

Fixes: da22013 ("atomisp: remove indirection from sh_css_malloc")
Signed-off-by: Sergei A. Trusov <sergei.a.trusov@ya.ru>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
  • Loading branch information
Sergei A. Trusov authored and Mauro Carvalho Chehab committed Sep 5, 2017
1 parent a607f51 commit bfc1335
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1939,6 +1939,7 @@ void *sh_css_calloc(size_t N, size_t size)
p = sh_css_malloc(N*size);
if (p)
memset(p, 0, size);
return p;
}
return NULL;
}

0 comments on commit bfc1335

Please sign in to comment.