]> git.karo-electronics.de Git - linux-beck.git/commit
staging: wilc1000: replace kmalloc/memcpy with kmemdup
authorChaehyun Lim <chaehyun.lim@gmail.com>
Tue, 27 Oct 2015 23:19:27 +0000 (08:19 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2015 23:50:45 +0000 (08:50 +0900)
commit58eabd68a438f8b4755fab7160a31745f5723db4
treefd084d528f10c2829947da21645ee7efa728230f
parentff3bce2f6caca3d004780fd46a2566e69993742c
staging: wilc1000: replace kmalloc/memcpy with kmemdup

This patch replaces kmalloc followed by memcpy with kmemdup.
It is also added error checking to return -ENOMEM when kmemdup is
failed.

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