]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: check for kmalloc allocation failures
authorColin Ian King <colin.king@canonical.com>
Wed, 21 Mar 2018 19:19:41 +0000 (19:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 17:23:10 +0000 (18:23 +0100)
commit7d076f00974e9677d4b234a3c14849688d28ac58
tree74aabce1117541b52efbffc448910f74c5628b9a
parentf5eaa981d3106630ffeb128e475246bc19dd93e4
staging: wilc1000: check for kmalloc allocation failures

There are three kmalloc allocations that are not null checked which
potentially could lead to null pointer dereference issues. Fix this
by adding null pointer return checks.

Detected by CoverityScan, CID#1466025-27 ("Dereference null return")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c