refcount_inc_not_zero
return refcount_inc_not_zero(&irq->refcount);
if (refcount_inc_not_zero(&mm->context.pinned))
if (!refcount_inc_not_zero(&cfset_opencnt)) { /* First open */
if (refcount_inc_not_zero(&cpu_cf_root.refcnt))
if (!refcount_inc_not_zero(&num_events)) {
if (!refcount_inc_not_zero(&pai_root[idx].refcnt)) {
WARN_ON_ONCE(unlikely(!refcount_inc_not_zero(&gmap->refcount)));
return refcount_inc_not_zero(&root->tdp_mmu_root_count);
refcount_inc_not_zero(&zwplug->ref)) {
return refcount_inc_not_zero(&tfm->refcnt) ? tfm : ERR_PTR(-EOVERFLOW);
if (!refcount_inc_not_zero(&nbd->refs)) {
if (refcount_inc_not_zero(&nbd->config_refs)) {
if (refcount_inc_not_zero(&nbd->refs))
!refcount_inc_not_zero(&nbd->refs)) {
if (!refcount_inc_not_zero(&nbd->refs)) {
if (!refcount_inc_not_zero(&nbd->config_refs))
if (!refcount_inc_not_zero(&nbd->refs)) {
if (refcount_inc_not_zero(&nbd->config_refs)) {
return refcount_inc_not_zero(&sess->refcount);
return refcount_inc_not_zero(&dev->refcount);
return refcount_inc_not_zero(&io->ref);
if (!refcount_inc_not_zero(&dmb_node->refcnt))
if (refcount_inc_not_zero(&ghes_refcount))
return refcount_inc_not_zero(&vioch->users);
return refcount_inc_not_zero(&msg->users);
if (refcount_inc_not_zero(&shmem->pages_use_count))
if (refcount_inc_not_zero(&shmem->pages_pin_count))
if (refcount_inc_not_zero(&shmem->pages_pin_count))
if (refcount_inc_not_zero(&shmem->vmap_use_count)) {
!refcount_inc_not_zero(&shmem->pages_use_count));
if (!refcount_inc_not_zero(&wl->refcount))
if (refcount_inc_not_zero(&wl->refcount))
bool held = refcount_inc_not_zero(&vma_res->hold_count);
if (!refcount_inc_not_zero(&wf->count)) {
if (!refcount_inc_not_zero(&wf->count)) {
if (subdev && !refcount_inc_not_zero(&subdev->use.refcount)) {
if (!refcount_inc_not_zero(&subdev->use.refcount)) {
if (!refcount_inc_not_zero(&cctx->uses)) {
if (!refcount_inc_not_zero(&cctx->uses)) {
if (!refcount_inc_not_zero(&ectx->uses)) {
if (refcount_inc_not_zero(&iobj->maps)) {
if (refcount_inc_not_zero(&iobj->maps)) {
if (!refcount_inc_not_zero(&iobj->maps)) {
if (refcount_inc_not_zero(&vm->as.active_cnt))
if (refcount_inc_not_zero(&vm->as.active_cnt))
if (refcount_inc_not_zero(&bo->usecnt))
if (!refcount_inc_not_zero(&bo->usecnt))
if (refcount_inc_not_zero(&partition->pt_ref_count))
!refcount_inc_not_zero(&cm_id_priv->refcount))
if (!refcount_inc_not_zero(&client->uses))
if (mad_agent && !refcount_inc_not_zero(&mad_agent->refcount))
if (!refcount_inc_not_zero(&ctx->ref))
else if (!refcount_inc_not_zero(&mc->ctx->ref))
if (!refcount_inc_not_zero(&dev->refcount))
if (!refcount_inc_not_zero(&dd->user_refcount))
refcount_inc_not_zero(&cm_node->refcnt))
if (!refcount_inc_not_zero(&cm_node->refcnt))
refcount_inc_not_zero(&cm_node->refcnt))
refcount_inc_not_zero(&cm_node->refcnt))
if (!refcount_inc_not_zero(&imr->mmkey.usecount))
if (!refcount_inc_not_zero(&neigh->refcnt)) {
if (!refcount_inc_not_zero(&neigh->refcnt)) {
refcount_inc_not_zero(&srv->refcount)) {
if (refcount_inc_not_zero(&gdom_info->users)) {
if (fault_param && !refcount_inc_not_zero(&fault_param->users))
if (!refcount_inc_not_zero(&obj->users))
if (!refcount_inc_not_zero(&obj->users))
if (!refcount_inc_not_zero(&obj->wait_cnt)) {
if (!immap || !refcount_inc_not_zero(&immap->owner->users)) {
if (!refcount_inc_not_zero(&dc->count))
if (!ictx || ictx->disconnected || !refcount_inc_not_zero(&ictx->users)) {
if (!refcount_inc_not_zero(&zero)) {
if (!refcount_inc_not_zero(&sat))
if (!refcount_inc_not_zero(&over))
return refcount_inc_not_zero(&pdsc->adminq_refcnt);
return refcount_inc_not_zero(&block->refcnt);
if (refcount_inc_not_zero(&ctx->refcount))
return refcount_inc_not_zero(&nhe->refcnt);
if (refcount_inc_not_zero(&hmfs_matcher->ref))
if (refcount_inc_not_zero(&hmfs_matcher->ref))
if (refcount_inc_not_zero(&smfs_matcher->ref))
if (refcount_inc_not_zero(&smfs_matcher->ref))
if (rev_entry && refcount_inc_not_zero(&rev_entry->counter->refcount)) {
if (entry && refcount_inc_not_zero(&entry->refcnt)) {
if (!mlx5_tc_ct_entry_valid(entry) || !refcount_inc_not_zero(&entry->refcnt)) {
refcount_inc_not_zero(&entry->refcnt)) {
refcount_inc_not_zero(&entry->refcnt))
refcount_inc_not_zero(&r->refcnt))
return refcount_inc_not_zero(&e->refcnt);
return refcount_inc_not_zero(&e->refcnt);
if (refcount_inc_not_zero(&hpe->refcnt))
if (!flow || !refcount_inc_not_zero(&flow->refcnt))
if (!refcount_inc_not_zero(&esw->qos.refcnt)) {
return refcount_inc_not_zero(&node->refcount);
if (refcount_inc_not_zero(&fs_hws_data->hws_action_refcount))
if (refcount_inc_not_zero(&fs_hws_data->hws_action_refcount)) {
if (refcount_inc_not_zero(&mlxsw_sp->parsing.parsing_depth_ref))
if (refcount_inc_not_zero(&bf->refcnt[rule_index])) {
if (refcount_inc_not_zero(&ptp_state->ptp_port_enabled_ref))
if (refcount_inc_not_zero(&vr->ul_rif_refcnt))
if (refcount_inc_not_zero(&mlxsw_sp->router->num_groups))
if (!refcount_inc_not_zero(&old->ref))
if (!refcount_inc_not_zero(&old->ref))
if (!refcount_inc_not_zero(&old->ref))
if (!refcount_inc_not_zero(&old->ref))
if (!refcount_inc_not_zero(&old->ref))
if (!refcount_inc_not_zero(&old->ref))
if (refcount_inc_not_zero(&neigh->ref)) {
if (!refcount_inc_not_zero(&old->ref))
if (!refcount_inc_not_zero(&sa->refcnt))
return refcount_inc_not_zero(&sc->refcnt) ? sc : NULL;
if (!refcount_inc_not_zero(&sa->refcnt))
if (po && !refcount_inc_not_zero(&sk_pppox(po)->sk_refcnt))
if (vs && !refcount_inc_not_zero(&vs->refcnt)) {
if (refcount_inc_not_zero(&rtwdev->refcount_ap_info))
return refcount_inc_not_zero(&cq->ref);
return refcount_inc_not_zero(&lport->ref);
return refcount_inc_not_zero(&nport->ref);
return refcount_inc_not_zero(&tfcp_req->ref);
&& refcount_inc_not_zero(&irq->refcount))
if (irq->irq_num == irq_num && refcount_inc_not_zero(&irq->refcount))
if (!refcount_inc_not_zero(&qeth_l2_switchdev_notify_refcnt)) {
return refcount_inc_not_zero(&task->refcount);
if (!refcount_inc_not_zero(&rp->refcount)) {
return refcount_inc_not_zero(&device->refcount);
if (permits && !refcount_inc_not_zero(&permits->usage))
if (refcount_inc_not_zero(&xpermits->usage)) {
if (refcount_inc_not_zero(&eb->refs)) {
if (refcount_inc_not_zero(&node->refs)) {
if (refcount_inc_not_zero(&node->refs)) {
if (refcount_inc_not_zero(&root->refs))
if (!refcount_inc_not_zero(&eb->refs)) {
if (eb && !refcount_inc_not_zero(&eb->refs))
if (!refcount_inc_not_zero(&exists->refs)) {
if (refcount_inc_not_zero(&exists->refs))
if (!refcount_inc_not_zero(&existing_eb->refs)) {
if (refcount_inc_not_zero(&fs_info->scrub_workers_refcnt))
if (refcount_inc_not_zero(&s->s_ref))
refcount_inc_not_zero(&mk->mk_struct_refs))
refcount_inc_not_zero(&mk->mk_struct_refs))
if (!refcount_inc_not_zero(&mk->mk_active_refs)) {
if (!refcount_inc_not_zero(&fsd->active_users))
if (!refcount_inc_not_zero(&sb->s_pending_errors))
if (fb && refcount_inc_not_zero(&fb->count))
!refcount_inc_not_zero(&delegation->refcount))
if (!delegation || !refcount_inc_not_zero(&delegation->refcount)) {
if (refcount_inc_not_zero(&pos->ref)) {
if (!refcount_inc_not_zero(&mirror->ref))
if (refcount_inc_not_zero(&pos->count))
if (ctx != NULL && refcount_inc_not_zero(&ctx->lock_context.count))
if (!refcount_inc_not_zero(&clp->cl_count))
if (!refcount_inc_not_zero(&clp->cl_count))
if (!refcount_inc_not_zero(&clp->cl_count))
if (!refcount_inc_not_zero(&clp->cl_count))
if (!refcount_inc_not_zero(&clp->cl_count))
if (refcount_inc_not_zero(&state->count))
if (refcount_inc_not_zero(&array->refcount))
if (!refcount_inc_not_zero(&nfm->nfm_ref))
if (nf && refcount_inc_not_zero(&nf->nf_ref))
if (refcount_inc_not_zero(&fi->fi_ref)) {
if (refcount_inc_not_zero(&fi->fi_ref))
if (refcount_inc_not_zero(&mark->refcnt)) {
refcount_inc_not_zero(&acl->a_refcount))
if (!refcount_inc_not_zero(&nv->refcount))
if (hm && !refcount_inc_not_zero(&hm->ref))
if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) {
return refcount_inc_not_zero(&kref->refcount);
if (refcount_inc_not_zero(&ns->__ns_ref))
return refcount_inc_not_zero(&t->usage) ? t : NULL;
return refcount_inc_not_zero(&tsk->stack_refcount) ?
return refcount_inc_not_zero(&shrinker->refcount);
if (psock && !refcount_inc_not_zero(&psock->refcnt))
if (cred != NULL && refcount_inc_not_zero(&cred->cr_count))
return refcount_inc_not_zero(&r->refcount);
return refcount_inc_not_zero(&ifp->refcnt);
if (n && !refcount_inc_not_zero(&n->refcnt))
if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt))
return refcount_inc_not_zero(&f6i->fib6_ref);
return refcount_inc_not_zero(&cp->refcnt);
if (!refcount_inc_not_zero(&opt->refcnt))
return refcount_inc_not_zero(&sap->refcnt);
if (n && !refcount_inc_not_zero(&n->refcnt))
return refcount_inc_not_zero(&nh->refcnt);
if (refcount_inc_not_zero(&qdisc->refcnt))
if (refcount_inc_not_zero(&sk->sk_refcnt)) {
if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) {
return refcount_inc_not_zero(&dev->refcount);
if (refcount_inc_not_zero(&src->bpf_filters->refs)) {
if (!refcount_inc_not_zero(&srcf->refs))
if (!io_eventfd_trigger(ev_fd) || !refcount_inc_not_zero(&ev_fd->refs))
return refcount_inc_not_zero(&worker->ref);
return refcount_inc_not_zero(&ptr->refcount);
if (pin_owner && !refcount_inc_not_zero(&local_storage->owner_refcnt))
if (!btf || !refcount_inc_not_zero(&btf->refcnt))
if (!refcount_inc_not_zero(&ctx->usage))
if (!refcount_inc_not_zero(&t->cb.refcnt))
if (!refcount_inc_not_zero((refcount_t *)ref))
if (refcount_inc_not_zero(&p->rcu_users))
if (!refcount_inc_not_zero(&w->cb.refcnt))
return refcount_inc_not_zero(&ctx->refcnt);
if (!refcount_inc_not_zero(&cb->refcnt))
return refcount_inc_not_zero(&pool->ref);
if (!refcount_inc_not_zero(&ctx->refcount)) {
!refcount_inc_not_zero(&ctx->refcount)) {
if (refcount_inc_not_zero(&old->refcount)) {
if (refcount_inc_not_zero(&global_ctx_data_ref))
if (refcount_inc_not_zero(&global_ctx_data_ref))
if (!refcount_inc_not_zero(&cd->refcount))
if (!refcount_inc_not_zero(&rb->refcount))
if (refcount_inc_not_zero(&event->rb->mmap_count)) {
if (!refcount_inc_not_zero(&rb->mmap_count))
if (!refcount_inc_not_zero(&rb->aux_refcount))
if (refcount_inc_not_zero(&uprobe->ref))
if (!refcount_inc_not_zero(&pi_state->refcount)) {
WARN_ON_ONCE(!refcount_inc_not_zero(&pi_state->refcount));
return refcount_inc_not_zero(&grp->refcount);
if ((flags & STACK_DEPOT_FLAG_GET) && !refcount_inc_not_zero(&stack->count))
while (!refcount_inc_not_zero(&memcg->id.ref)) {
if (refcount_inc_not_zero(&osd->o_ref)) {
refcount_inc_not_zero(&sk->sk_refcnt)) {
if (refcount_inc_not_zero(&sk->sk_refcnt)) {
likely(refcount_inc_not_zero(&rule->refcnt))) {
if (!refcount_inc_not_zero(&fp->refcnt))
unlikely(!refcount_inc_not_zero(&sk->sk_refcnt)))
if (!refcount_inc_not_zero(&n->refcnt))
if (!sk || !refcount_inc_not_zero(&sk->sk_refcnt))
if (likely(refcount_inc_not_zero(&sk->sk_refcnt))) {
if (likely(refcount_inc_not_zero(&sk->sk_refcnt))) {
if (sk_is_refcounted(sk) && !refcount_inc_not_zero(&sk->sk_refcnt))
if (!refcount_inc_not_zero(&psock->refcnt))
if (sk_is_refcounted(sk) && !refcount_inc_not_zero(&sk->sk_refcnt))
if (IS_ERR_OR_NULL(nsk) || unlikely(!refcount_inc_not_zero(&nsk->sk_refcnt))) {
if (refcount_inc_not_zero(&devlink->refcount))
if (!refcount_inc_not_zero(&doi_def->refcount))
if (refcount_inc_not_zero(&im->refcnt)) {
if (unlikely(!refcount_inc_not_zero(&sk_listener->sk_refcnt))) {
if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt)))
if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt)))
if (p && !refcount_inc_not_zero(&p->refcnt))
if (sk && !refcount_inc_not_zero(&sk->sk_refcnt))
if (refcount_inc_not_zero(&sk->sk_refcnt))
if (!IS_ERR(n) && !refcount_inc_not_zero(&n->refcnt))
if (!refcount_inc_not_zero(&sk->sk_refcnt))
if (unlikely(!refcount_inc_not_zero(&sktw->sk_refcnt)))
if (sk && !refcount_inc_not_zero(&sk->sk_refcnt))
if (sk && !refcount_inc_not_zero(&sk->sk_refcnt))
if (sk && !refcount_inc_not_zero(&sk->sk_refcnt))
if (!refcount_inc_not_zero(&doi_def->refcount))
if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt))
if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt)))
if (sk && !refcount_inc_not_zero(&sk->sk_refcnt))
if (sk && !refcount_inc_not_zero(&sk->sk_refcnt))
refcount_inc_not_zero(&tunnel->ref_count)) {
if (tunnel && refcount_inc_not_zero(&tunnel->ref_count)) {
if (refcount_inc_not_zero(&tunnel->ref_count)) {
refcount_inc_not_zero(&session->ref_count)) {
refcount_inc_not_zero(&session->ref_count)) {
if (session && refcount_inc_not_zero(&session->ref_count)) {
refcount_inc_not_zero(&session->ref_count)) {
refcount_inc_not_zero(&session->ref_count)) {
refcount_inc_not_zero(&session->ref_count)) {
if (session && refcount_inc_not_zero(&session->ref_count)) {
if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt)))
if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt)))
if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt)))
if (!refcount_inc_not_zero(&mdev->refs))
if (!refcount_inc_not_zero(&sk->sk_refcnt))
if (!refcount_inc_not_zero(&sk->sk_refcnt))
if (!refcount_inc_not_zero(&sk->sk_refcnt))
if (!refcount_inc_not_zero(&tmp->ct_general.use))
if (!refcount_inc_not_zero(&tmp->ct_general.use))
if (!refcount_inc_not_zero(&ct->ct_general.use))
if (likely(refcount_inc_not_zero(&ct->ct_general.use))) {
if (i && !refcount_inc_not_zero(&i->use))
!refcount_inc_not_zero(&exp->master->ct_general.use)))
if (h != NULL && !refcount_inc_not_zero(&h->refcnt)) {
refcount_inc_not_zero(&ct->ct_general.use))
if (!refcount_inc_not_zero(&ct->ct_general.use))
if (unlikely(!refcount_inc_not_zero(&ct->ct_general.use)))
if (!refcount_inc_not_zero(&ct->ct_general.use))
if (state->sk && !refcount_inc_not_zero(&state->sk->sk_refcnt))
if (!refcount_inc_not_zero(&sk->sk_refcnt))
if (!refcount_inc_not_zero(&cur->refcnt)) {
if (!refcount_inc_not_zero(&timeout->refcnt))
if (inst && !refcount_inc_not_zero(&inst->use))
return refcount_inc_not_zero(&psd->refcnt);
!refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt)))
if (!refcount_inc_not_zero(&p->tcfa_refcnt)) {
if (ct_ft && refcount_inc_not_zero(&ct_ft->ref))
if (block && !refcount_inc_not_zero(&block->refcnt))
} else if (!refcount_inc_not_zero(&fnew->mask->refcnt)) {
if (!f || !refcount_inc_not_zero(&f->refcnt))
if (!(add && f->deleted) && refcount_inc_not_zero(&f->refcnt)) {
if (f && !refcount_inc_not_zero(&f->refcnt))
return refcount_inc_not_zero(&ep->base.refcnt);
return refcount_inc_not_zero(&transport->refcnt);
if (!smc || !refcount_inc_not_zero(&smc->sk.sk_refcnt)) {
if (!refcount_inc_not_zero(&gss_auth->rpc_auth.au_count))
if (!refcount_inc_not_zero(&clnt->cl_count)) {
if (clnt != NULL && refcount_inc_not_zero(&clnt->cl_count)) {
return refcount_inc_not_zero(&ret->cl_count) ? ret : NULL;
return (b && refcount_inc_not_zero(&b->refcnt));
WARN_ON(!refcount_inc_not_zero(&aead->refcnt));
WARN_ON(!refcount_inc_not_zero(&tmp->refcnt));
if (unlikely(!tmp || !refcount_inc_not_zero(&tmp->refcnt)))
WARN_ON(!refcount_inc_not_zero(&src->refcnt));
!refcount_inc_not_zero(&ctx->refcount))
return refcount_inc_not_zero(&policy->refcnt);
return refcount_inc_not_zero(&x->refcnt);
if (!refcount_inc_not_zero(&key->usage))
if (!refcount_inc_not_zero(&keyring->usage))
if (likely(refcount_inc_not_zero(&object->usage))) {
REFCOUNT_WARN(!refcount_inc_not_zero(r), "refcount_t: increment on 0; use-after-free.\n");
refcount_inc_not_zero(comm_str__refcnt(cs));
return refcount_inc_not_zero(&kvm->users_count);