summaryrefslogtreecommitdiff
path: root/drivers/net/phy/phy.c
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2017-04-23 10:06:36 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-13 19:50:18 +0200
commit40343d06f727faf9125ae61ce66fee27787abd4c (patch)
tree5da27b45cf866dc8ce6ea51401baa1e7d77092d1 /drivers/net/phy/phy.c
parent766da58378855d4216ae47cfe63517acf005af0b (diff)
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/phy/phy.c')
0 files changed, 0 insertions, 0 deletions