diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-09-15 15:55:40 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:14 -0400 |
commit | e9a0a26ed05a93034f3d49374dd5ef943db2d5b7 (patch) | |
tree | 753d34c6401d9d2a4e883301d726bee946de1b21 /fs/bcachefs/acl.c | |
parent | 265cc423155d56030e44068680085adb59800326 (diff) |
bcachefs: acl: Uninitialized variable in bch2_acl_chmod()
The clean up code at the end of the function uses "acl" so it needs
to be initialized to NULL.
Fixes: 53306e096d91 ("bcachefs: Always check for transaction restarts")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/acl.c')
-rw-r--r-- | fs/bcachefs/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/acl.c b/fs/bcachefs/acl.c index 9653401957b3..6b1579e96dfe 100644 --- a/fs/bcachefs/acl.c +++ b/fs/bcachefs/acl.c @@ -417,7 +417,7 @@ int bch2_acl_chmod(struct btree_trans *trans, subvol_inum inum, struct btree_iter iter; struct bkey_s_c_xattr xattr; struct bkey_i_xattr *new; - struct posix_acl *acl; + struct posix_acl *acl = NULL; struct bkey_s_c k; int ret; |