media: staging: atomisp: sh_css_calloc shall return a pointer to the allocated space
Subsystems (4)
PATCH 1/1 media: staging: atomisp: sh_css_calloc shall return a pointer to the allocated space
The calloc function returns either a null pointer or a pointer to the allocated space. Add the second case that is missed.
--- drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css.c | 1 + 1 file changed, 1 insertion(+)
drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css.c +1 -0
@@ -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 ; }
Quoted 2 lines · Sergei A. Trusov
The calloc function returns either a null pointer or a pointer to the allocated space. Add the second case that is missed.
gads.
Bug added by commit da22013f7df4 ("atomisp: remove indirection from sh_css_malloc")
These wrappers should really be deleted.
Sakari Ailus
AppliedQuoted 10 lines · Joe Perches
Quoted 2 lines · Sergei A. Trusov
The calloc function returns either a null pointer or a pointer to the allocated space. Add the second case that is missed.
gads.
Bug added by commit
da22013f7df4("atomisp: remove indirection fromsh_css_malloc")These wrappers should really be deleted.
Applied, with the appropriate Fixes: header.
Thanks!
Signature · 2 lines
Sakari Ailus e-mail: [email protected] XMPP: [email protected]