Commit 8030698b authored by Thorsten Blum's avatar Thorsten Blum Committed by Treehugger Robot
Browse files

UPSTREAM: f2fs: Use struct_size() to improve f2fs_acl_clone()



Use struct_size() to calculate the number of bytes to allocate for a
cloned acl.

Change-Id: Icd8a700cab9c7ed4c7e78e73b755643ef4f0e9e5
Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 527a4ded)
parent d78a4c8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment