On Fri, Nov 11, 2022 at 10:35:27AM -0800, Kristen Carlson Accardi wrote: > +void *misc_cg_get_priv(enum misc_res_type type, struct misc_cg *cg) > +{ > + if (!(valid_type(type) && cg)) > + return NULL; > + > + return cg->res[type].priv; > +} > +EXPORT_SYMBOL_GPL(misc_cg_get_priv); Yeah, just deref it. I'm not sure what all these accessors are contributing. Thanks. -- tejun