]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: atomisp: sh_css_calloc shall return a pointer to the allocated space
authorSergei A. Trusov <sergei.a.trusov@ya.ru>
Wed, 2 Aug 2017 08:00:01 +0000 (04:00 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 5 Sep 2017 11:29:29 +0000 (07:29 -0400)
commit8f4899364da62724a1c0370553eb9b14bc5e6df8
tree36825a6de30142bf7a7c22adb448c94c304b1a00
parentc26c1a4bd22e72ba7b99a54ccbd667f2b6f188a0
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.

Fixes: 431e90f91a47 ("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>
drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css.c