]> Git Repo - linux.git/commit - fs/xattr.c
xattr: fix uninitialized out-param
authorDaniel Xu <[email protected]>
Thu, 9 Apr 2020 06:27:29 +0000 (23:27 -0700)
committerTejun Heo <[email protected]>
Thu, 9 Apr 2020 19:33:09 +0000 (15:33 -0400)
commit772b3140669246e1ab32392c490d338e2eb7b803
tree404162cb31bd7fd2afd7e906dac4ce076ad5f6a9
parentd8ef4b38cb69d907f9b0e889c44d05fc0f890977
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: 0c47383ba3bd ("kernfs: Add option to enable user xattrs")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Daniel Xu <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
fs/xattr.c
This page took 0.052748 seconds and 4 git commands to generate.