]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[media] cx25840: fix unchecked return values
authorPan Bian <bianpan2016@163.com>
Sun, 23 Apr 2017 13:06:36 +0000 (10:06 -0300)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:28 +0000 (21:36 -0400)
commit94a30c4b1c91ab8a09f04aa15e22720b08138d33
tree4487a1da750698e146e201d7e6e306d4f8070ff7
parentab482b3f4682d4cb0e87a7cb4053193056249a62
[media] cx25840: fix unchecked return values

[ Upstream commit 35378ce143071c2a6bad4b59a000e9b9f8f6ea67 ]

In functions cx25840_initialize(), cx231xx_initialize(), and
cx23885_initialize(), the return value of create_singlethread_workqueue()
is used without validation. This may result in NULL dereference and cause
kernel crash. This patch fixes it.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/media/i2c/cx25840/cx25840-core.c