[media] cx25840: fix unchecked return values
authorPan Bian <bianpan2016@163.com>
Sun, 23 Apr 2017 13:06:36 +0000 (10:06 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 10:30:11 +0000 (07:30 -0300)
commit35378ce143071c2a6bad4b59a000e9b9f8f6ea67
treef7d10ed01d7f636914f7446375796c06976821f8
parentb9150e8131914df75d396a5730a599d358f016d8
[media] cx25840: fix unchecked return values

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>
drivers/media/i2c/cx25840/cx25840-core.c