Skip to content
Commit 772b3140 authored by Daniel Xu's avatar Daniel Xu Committed by Tejun Heo
Browse files

xattr: fix uninitialized out-param



`removed_sized` isn't correctly initialized (as the doc comment
suggests) on memory allocation failures. Fix by moving initialization up
a bit.

Fixes: 0c47383b ("kernfs: Add option to enable user xattrs")
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDaniel Xu <dxu@dxuuu.xyz>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent d8ef4b38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment