Lines Matching refs:new_shadow
109 struct klp_shadow *new_shadow; in __klp_shadow_get_or_alloc() local
123 new_shadow = kzalloc(size + sizeof(*new_shadow), gfp_flags); in __klp_shadow_get_or_alloc()
124 if (!new_shadow) in __klp_shadow_get_or_alloc()
136 kfree(new_shadow); in __klp_shadow_get_or_alloc()
140 new_shadow->obj = obj; in __klp_shadow_get_or_alloc()
141 new_shadow->id = id; in __klp_shadow_get_or_alloc()
146 err = ctor(obj, new_shadow->data, ctor_data); in __klp_shadow_get_or_alloc()
149 kfree(new_shadow); in __klp_shadow_get_or_alloc()
157 hash_add_rcu(klp_shadow_hash, &new_shadow->node, in __klp_shadow_get_or_alloc()
158 (unsigned long)new_shadow->obj); in __klp_shadow_get_or_alloc()
161 return new_shadow->data; in __klp_shadow_get_or_alloc()