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)
commit72c901582c366da670181b9a13dea28d2078b905
tree6e5837213f7ba516d29681be7886c218bdfd371e
parent5160fb4bbd7add491b93fbf859cae5804f3de8bf
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