if (r < 0)
return r;
+ // astate can be modified by append_atomic_test
+ // coverity[check_after_deref:SUPPRESS]
if (astate &&
obj_ofs < astate->data.length()) {
unsigned chunk_len = std::min((uint64_t)astate->data.length() - obj_ofs, (uint64_t)len);
if (r < 0)
return r;
+ // astate can be modified by append_atomic_test
+ // coverity[check_after_deref:SUPPRESS]
if (astate && astate->prefetch_data) {
if (!ofs && astate->data.length() >= len) {
bl = astate->data;
if (r < 0)
return r;
+ // astate can be modified by append_atomic_test
+ // coverity[check_after_deref:SUPPRESS]
if (astate &&
obj_ofs < astate->data.length()) {
unsigned chunk_len = std::min((uint64_t)astate->data.length() - obj_ofs, (uint64_t)len);
// retry the operation until it succeeds
while (true) {
yield {
- std::lock_guard l{lock};
+ std::lock_guard l{lock};
cr = alloc_cr();
cr->get();
call(cr);
}
{
- std::lock_guard l{lock};
+ std::lock_guard l{lock};
+ // coverity[var_deref_model:SUPPRESS]
cr->put();
cr = NULL;
}
/* implies !rgw_fh, so also !LOCKED */
return -ENOENT;
}
+ assert(rgw_fh);
if (bs.num_entries > 1) {
unref(bkt_fh); /* return stat_bucket ref */
/* ENOENT when raced with other s3 gateway */
if (! rc || rc == -ENOENT) {
+ // coverity[var_deref_op:SUPPRESS]
rgw_fh->flags |= RGWFileHandle::FLAG_DELETED;
fh_cache.remove(rgw_fh->fh.fh_hk.object, rgw_fh,
RGWFileHandle::FHCache::FLAG_LOCK);
failed = 0;
Done:
- if (!failed)
- ;
- else if (!r)
- ;
- else {
+ if(failed && r) {
kmip_free_handle_stuff(r);
delete r;
r = 0;
if (compressor && compressor->is_compressed()) {
bufferlist tmp;
- RGWCompressionInfo cs_info;
+ RGWCompressionInfo cs_info;
+ assert(plugin != nullptr);
+ // plugin exists when the compressor does
+ // coverity[dereference:SUPPRESS]
cs_info.compression_type = plugin->get_type_name();
cs_info.orig_size = s->obj_size;
cs_info.compressor_message = compressor->get_compressor_message();
if (compressor && compressor->is_compressed()) {
ceph::bufferlist tmp;
RGWCompressionInfo cs_info;
+ assert(plugin != nullptr);
+ // plugin exists when the compressor does
+ // coverity[dereference:SUPPRESS]
cs_info.compression_type = plugin->get_type_name();
cs_info.orig_size = s->obj_size;
cs_info.compressor_message = compressor->get_compressor_message();
if (compressor && compressor->is_compressed()) {
ceph::bufferlist tmp;
RGWCompressionInfo cs_info;
+ assert(plugin != nullptr);
+ // plugin exists when the compressor does
+ // coverity[dereference:SUPPRESS]
cs_info.compression_type = plugin->get_type_name();
cs_info.orig_size = size;
cs_info.compressor_message = compressor->get_compressor_message();