]> git.baikalelectronics.ru Git - kernel.git/commit
media: smiapp: check memory allocation failure
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 24 Aug 2017 05:58:39 +0000 (01:58 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 27 Aug 2017 00:15:13 +0000 (20:15 -0400)
commit1be9d72fd2e79995e1f171abb5ad69242340e874
tree6e5837213f7ba516d29681be7886c218bdfd371e
parent3ace3111a9901a5f36a8251eb6bc33abb791c93a
media: smiapp: check memory allocation failure

Check memory allocation failure and return -ENOMEM in such a case.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/smiapp/smiapp-core.c