kernel/module: Use kmemdup to replace kmalloc+memcpy
authorzhong jiang <zhongjiang@huawei.com>
Tue, 31 Jul 2018 16:56:17 +0000 (00:56 +0800)
committerJessica Yu <jeyu@kernel.org>
Thu, 2 Aug 2018 16:03:17 +0000 (18:03 +0200)
commit9be936f4b3a2ec101f54cff9cf1a6abf67263c50
tree3ee7695f2ee3179bd69b52d1d1b9fbba599cfcf3
parent4d58e7034d1971436d44f203cf69d2feb6b82e5c
kernel/module: Use kmemdup to replace kmalloc+memcpy

we prefer to the kmemdup rather than kmalloc+memcpy. so just
replace them.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c