summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-common.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2019-07-11 18:57:13 +0800
committerKinglong Mee <kinglongmee@gmail.com>2019-07-17 09:02:11 +0800
commit477bbe36dc2a05e00ffb137450fa18a0aba8bf6a (patch)
treee2e33f1d8aea82b16732c12c5b8a2b9a010b54cb /xlators/cluster/dht/src/dht-common.c
parent11de436ba7ef4cc1f583609f2482b1008607d410 (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#1729772 Signed-off-by: Kinglong Mee <mijinlong@horiscale.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.c')
0 files changed, 0 insertions, 0 deletions