]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00229938 pxp/v4l2: check return value of kmalloc against NULL
authorRobby Cai <R63905@freescale.com>
Wed, 17 Oct 2012 01:01:35 +0000 (09:01 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:36 +0000 (08:35 +0200)
commit7b7e5b1cc7069883f539b1c92f500e10c78198fd
tree79be0b7b9eee472523ef84ff854fed1a53dbbdc3
parente477202387d6f444f3be3aa0f57ae9444dfbd598
ENGR00229938 pxp/v4l2: check return value of kmalloc against NULL

This is needed sanity check, because on Ubuntu it's likely that low memory
will happen. This patch also makes this memory allocated from dma zone.

Signed-off-by: Robby Cai <R63905@freescale.com>
drivers/media/video/mxc/output/mxc_pxp_v4l2.c