mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
rgw/lc: Fix use-after-free in RGWLC::process
Fixed use-after-free issue with 'rgw::sal::LCSerializer lock' in RGWLC::process. Signed-off-by: Soumya Koduri <skoduri@redhat.com>
This commit is contained in:
parent
0e7a7be5c0
commit
e54e68ad3c
@ -1804,11 +1804,11 @@ int RGWLC::process(int index, int max_lock_secs, LCWorker* worker,
|
||||
<< dendl;
|
||||
|
||||
lock->unlock();
|
||||
delete lock;
|
||||
ret = bucket_lc_process(entry.bucket, worker, thread_stop_at(), once);
|
||||
bucket_lc_post(index, max_lock_secs, entry, ret, worker);
|
||||
} while(1 && !once);
|
||||
|
||||
delete lock;
|
||||
return 0;
|
||||
|
||||
exit:
|
||||
|
Loading…
Reference in New Issue
Block a user