staging: wilc1000: linux_mon: fix error code of kmalloc
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 1 Feb 2016 12:26:46 +0000 (21:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:34:29 +0000 (15:34 -0800)
commitb026f6e8d607f40f9fcdc0bc9966db4bde4a1129
tree84c36509baada76575671eb94e84c3af32e9d240
parentfa611271b4d681d02520c458c555e48ee11d61d4
staging: wilc1000: linux_mon: fix error code of kmalloc

This patch fixes error codes as -ENOMEM instead of using -EFAULT if
kmalloc is failed.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_mon.c