[media] cx231xx: correctly handling failed allocation
authorInsu Yun <wuninsu@gmail.com>
Tue, 29 Dec 2015 18:53:35 +0000 (16:53 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 09:41:37 +0000 (07:41 -0200)
commitf8433226d1b3eb035693724dca786c4445221368
treef4ea32dbd8475c3b9ad7580e358ccd2452661fc1
parentb68554cd76bfed57a3aac2fc4ac4c60478d90050
[media] cx231xx: correctly handling failed allocation

Since kmalloc can be failed in memory pressure,
if not properly handled, NULL dereference can be happend

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/cx231xx/cx231xx-417.c