]> 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, 18 Jan 2023 10:41:55 +0000 (11:41 +0100)
commit8cf610e8f93fb4953c165604271a5ae848d36121
treef2256cf7b7cb206ad684bf94cd2400c8fb34bbd2
parente42332cb1d6cceb7faf4c513fc25b942ffa248f4
ext4: use kmemdup() to replace kmalloc + memcpy

[ Upstream commit 60d9bdc58110a95c5bd3cb4e14df5fb44c187afe ]

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>
Stable-dep-of: a44e84a9b776 ("ext4: fix deadlock due to mbcache entry corruption")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/xattr.c