diff options
| author | Kinglong Mee <kinglongmee@gmail.com> | 2019-07-11 18:57:13 +0800 |
|---|---|---|
| committer | hari gowtham <hari.gowtham005@gmail.com> | 2020-02-26 11:09:08 +0000 |
| commit | 611961144704672c6a670fc7ad91a6e8000b2c0f (patch) | |
| tree | 0a5e802303506ac8fa428588681fe42da6d73c4f /extras/cliutils/cliutils.py | |
| parent | 96d326cc917baf6ac44f4deacef6d251ebcdf0ea (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#1806838
Signed-off-by: Kinglong Mee <mijinlong@horiscale.com>
Diffstat (limited to 'extras/cliutils/cliutils.py')
0 files changed, 0 insertions, 0 deletions
