]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: use kmemdup() to replace kmalloc + memcpy
authorShuqi Zhang <zhangshuqi3@huawei.com>
Wed, 25 May 2022 03:01:20 +0000 (11:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:27 +0000 (14:24 +0200)
commit765b0a0f1ea92818df19edf0df3c43c46cf88ac7
tree0c99aede3d6c62a607f906fca338ea87b6d79ebb
parent46076addddf2900b3e863b7f627a17f1ccacf43e
ext4: use kmemdup() to replace kmalloc + memcpy

[ Upstream commit ab3af306998e1b050dd3ec91294b50e523c9ad1f ]

Replace kmalloc + memcpy with kmemdup()

Signed-off-by: Shuqi Zhang <zhangshuqi3@huawei.com>
Reviewed-by: Ritesh Harjani <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20220525030120.803330-1-zhangshuqi3@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/xattr.c