Home
last modified time | relevance | path

Searched hist:dc3f89c3 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/wireless/marvell/libertas/
H A Dif_spi.cdc3f89c3 Sun Apr 23 08:19:38 CDT 2017 Pan Bian <bianpan2016@163.com> libertas: check return value of alloc_workqueue

Function alloc_workqueue() will return a NULL pointer if there is no
enough memory, and its return value should be validated before using.
However, in function if_spi_probe(), its return value is not checked.
This may result in a NULL dereference bug. This patch fixes the bug.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
dc3f89c3 Sun Apr 23 08:19:38 CDT 2017 Pan Bian <bianpan2016@163.com> libertas: check return value of alloc_workqueue

Function alloc_workqueue() will return a NULL pointer if there is no
enough memory, and its return value should be validated before using.
However, in function if_spi_probe(), its return value is not checked.
This may result in a NULL dereference bug. This patch fixes the bug.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>