]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: wilc1000: wilc_msgqueue: Use kmemdup instead of kmalloc and memcpy
authorShraddha Barke <shraddha.6596@gmail.com>
Sun, 11 Oct 2015 16:31:37 +0000 (22:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 04:01:28 +0000 (21:01 -0700)
commitbbe7a525c5649e0b9e02aab65beb2bd56cbe7f1e
treede6bd87e16bf89bf96d92d71b9e63b6f9913d017
parent4a4e99ef661895b9c0fc7df876e1ce6708ace596
Staging: wilc1000: wilc_msgqueue: Use kmemdup instead of kmalloc and memcpy

Replace kmalloc and memcpy with kmemdup.
Problem found using coccicheck

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_msgqueue.c