summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/events.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2019-07-11 18:57:13 +0800
committerRinku Kothiya <rkothiya@redhat.com>2020-03-16 08:01:00 +0000
commit36e26424f5eabe1332a49c4ffaa3214d38675e29 (patch)
tree51abeea6ebbcfea176e7f6b7cf435a07ad1f472c /libglusterfs/src/events.c
parent2c5b724c0071ae184dd4bfd441d7346106387ed5 (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 'libglusterfs/src/events.c')
0 files changed, 0 insertions, 0 deletions