bcachefs: Fix bch2_acl_chmod() cleanup on error
authorDan Robertson <dan@dlrobertson.com>
Thu, 24 Jun 2021 01:52:41 +0000 (21:52 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:07 +0000 (17:09 -0400)
commit31029f2f70e6abc833ceefb0f32adf4e7bf42235
tree6f7de44514e9f29d2bc1930380e7d9ce6ece0913
parente8e9607f3c1bb927002b7582b68d36c7eb3e92e2
bcachefs: Fix bch2_acl_chmod() cleanup on error

Avoid calling kfree on the returned error pointer if
bch2_acl_from_disk fails.

Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/acl.c