Re: [PATCH] xattr: switch to vmemdup_user()

2021-03-04 Thread Matthew Wilcox
On Tue, Mar 02, 2021 at 02:32:21PM +0800, Yang Li wrote: > Replace opencoded alloc and copy with vmemdup_user() > > fixed the following coccicheck: > ./fs/xattr.c:561:11-19: WARNING opportunity for vmemdup_user > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Reviewed-by: Matthew Wilcox (

[PATCH] xattr: switch to vmemdup_user()

2021-03-02 Thread Yang Li
Replace opencoded alloc and copy with vmemdup_user() fixed the following coccicheck: ./fs/xattr.c:561:11-19: WARNING opportunity for vmemdup_user Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/xattr.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fs/xattr