]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commita5826c96b17e0f6051172ca422761ab979ad650f
treef4ea32dbd8475c3b9ad7580e358ccd2452661fc1
parent29ca289e8754708488a9a9aeef5701e8e0d1f0d9
[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