diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2019-07-11 18:57:13 +0800 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2020-03-16 08:01:00 +0000 |
commit | 36e26424f5eabe1332a49c4ffaa3214d38675e29 (patch) | |
tree | 51abeea6ebbcfea176e7f6b7cf435a07ad1f472c /contrib/fuse-lib | |
parent | 2c5b724c0071ae184dd4bfd441d7346106387ed5 (diff) |
cluster/ec: skip updating ctx->loc again when ec_fix_open/opendir
The ec_manager_open/opendir memsets ctx->loc which causes
memory/inode leak, and ec_fheal uses ctx->loc out of fd->lock
that loc_copy may copy bad data when memset it.
This patch skips updating ctx->loc when it is initilizaed.
With it, ctx->loc is filled once, and never updated.
Change-Id: I3bf5ffce4caf4c1c667f7acaa14b451d37a3550a
fixes: bz#1806843
Signed-off-by: Kinglong Mee <mijinlong@horiscale.com>
Diffstat (limited to 'contrib/fuse-lib')
0 files changed, 0 insertions, 0 deletions