staging: wilc1000: linux_wlan_spi.c: fix kzalloc error check
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 17 Sep 2015 07:48:45 +0000 (16:48 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Sep 2015 02:46:41 +0000 (19:46 -0700)
commita0e5facedb4a1c7892a6f6f7a749eaf9b23fbbe1
treedd9e0f2877b174c58f1970793f33396a0945eb9a
parentfed16f2c912fbd1e8e866738e2a8fcd5d9c36c81
staging: wilc1000: linux_wlan_spi.c: fix kzalloc error check

This patch fixes error check of kzalloc.
If kzalloc is failed, return type is used as -ENOMEM.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan_spi.c
This page took 0.025486 seconds and 5 git commands to generate.