Home
last modified time | relevance | path

Searched refs:refcount_inc_not_zero (Results 1 – 25 of 124) sorted by relevance

12345

/OK3568_Linux_fs/kernel/tools/include/linux/
H A Drefcount.h76 bool refcount_inc_not_zero(refcount_t *r) in refcount_inc_not_zero() function
109 REFCOUNT_WARN(!refcount_inc_not_zero(r), "refcount_t: increment on 0; use-after-free.\n"); in refcount_inc()
/OK3568_Linux_fs/kernel/drivers/misc/lkdtm/
H A Drefcount.c66 if (!refcount_inc_not_zero(&over)) in lkdtm_REFCOUNT_INC_NOT_ZERO_OVERFLOW()
211 if (!refcount_inc_not_zero(&zero)) { in lkdtm_REFCOUNT_INC_ZERO()
308 if (!refcount_inc_not_zero(&sat)) in lkdtm_REFCOUNT_INC_NOT_ZERO_SATURATED()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/
H A Dintel_wakeref.c166 if (!refcount_inc_not_zero(&wf->count)) { in intel_wakeref_auto()
168 if (!refcount_inc_not_zero(&wf->count)) { in intel_wakeref_auto()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
H A Dnv50.c224 if (refcount_inc_not_zero(&iobj->maps)) in nv50_instobj_acquire()
231 if (refcount_inc_not_zero(&iobj->maps)) { in nv50_instobj_acquire()
243 if (!refcount_inc_not_zero(&iobj->maps)) { in nv50_instobj_acquire()
/OK3568_Linux_fs/kernel/include/linux/can/
H A Dskb.h57 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_refcount_defs.h52 #define kbase_refcount_inc_not_zero(x) refcount_inc_not_zero(x)
/OK3568_Linux_fs/kernel/include/linux/
H A Dkref.h111 return refcount_inc_not_zero(&kref->refcount); in kref_get_unless_zero()
H A Dipc_namespace.h138 if (refcount_inc_not_zero(&ns->count)) in get_ipc_ns_not_zero()
H A Drefcount.h243 static inline __must_check bool refcount_inc_not_zero(refcount_t *r) in refcount_inc_not_zero() function
/OK3568_Linux_fs/kernel/net/mptcp/
H A Dtoken.c260 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_get_sock()
319 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_iter_next()
/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnf_queue.c107 if (state->sk && !refcount_inc_not_zero(&state->sk->sk_refcnt)) in nf_queue_entry_get_refs()
196 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in __nf_queue()
/OK3568_Linux_fs/kernel/include/linux/sched/
H A Dtask_stack.h68 return refcount_inc_not_zero(&tsk->stack_refcount) ? in try_get_task_stack()
/OK3568_Linux_fs/kernel/drivers/block/
H A Dnbd.c392 if (!refcount_inc_not_zero(&nbd->config_refs)) { in nbd_xmit_timeout()
902 if (!refcount_inc_not_zero(&nbd->config_refs)) { in nbd_handle_cmd()
1505 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_open()
1509 if (!refcount_inc_not_zero(&nbd->config_refs)) { in nbd_open()
1513 if (refcount_inc_not_zero(&nbd->config_refs)) { in nbd_open()
1921 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_connect()
2084 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_disconnect()
2091 if (!refcount_inc_not_zero(&nbd->config_refs)) { in nbd_genl_disconnect()
2125 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_reconfigure()
2133 if (!refcount_inc_not_zero(&nbd->config_refs)) { in nbd_genl_reconfigure()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dudp_diag.c54 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in udp_dump_one()
207 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in __udp_diag_destroy()
/OK3568_Linux_fs/kernel/include/net/
H A Darp.h43 if (n && !refcount_inc_not_zero(&n->refcnt)) in __ipv4_neigh_lookup()
H A Dllc.h124 return refcount_inc_not_zero(&sap->refcnt); in llc_sap_hold_safe()
/OK3568_Linux_fs/kernel/net/ipv6/
H A Dinet6_hashtables.c76 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet6_lookup_established()
240 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet6_lookup()
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dcomm.c24 if (cs && refcount_inc_not_zero(&cs->refcnt)) in comm_str__get()
/OK3568_Linux_fs/kernel/fs/afs/
H A Dsecurity.c209 if (permits && !refcount_inc_not_zero(&permits->usage)) in afs_cache_permit()
261 if (refcount_inc_not_zero(&xpermits->usage)) { in afs_cache_permit()
/OK3568_Linux_fs/kernel/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c102 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()
/OK3568_Linux_fs/kernel/include/linux/sunrpc/
H A Dauth.h189 if (cred != NULL && refcount_inc_not_zero(&cred->cr_count)) in get_rpccred()
/OK3568_Linux_fs/kernel/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c102 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v6()
/OK3568_Linux_fs/kernel/fs/crypto/
H A Dkeyring.c299 refcount_inc_not_zero(&mk->mk_struct_refs)) in fscrypt_find_master_key()
310 refcount_inc_not_zero(&mk->mk_struct_refs)) in fscrypt_find_master_key()
483 if (!refcount_inc_not_zero(&mk->mk_active_refs)) in add_existing_master_key()
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Ddisk-io.h102 if (refcount_inc_not_zero(&root->refs)) in btrfs_grab_root()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_bloom_filter.c183 if (refcount_inc_not_zero(&bf->refcnt[rule_index])) { in mlxsw_sp_acl_bf_entry_add()

12345