]> 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)
commit35173ab093d5ebfe5f03d8bc613ec7720fc89bb6
treef4ea32dbd8475c3b9ad7580e358ccd2452661fc1
parent92b6f4b2edecaa322b0c3027c89469c00e5e853a
[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