Re: [PATCH 2/4] integrity: Linux Integrity Module(LIM)

Dave Hansen
2008-11-21T17:45:45Z

On Thu, 2008-11-20 at 11:43 -0500, Mimi Zohar wrote:
>
> +int integrity_find_template(const char *template_name,
> + struct template_list_entry **template_entry)
> +{
> + struct template_list_entry *entry;
> +
> + list_for_each_entry_rcu(entry, &integrity_templates, template)
> {
> + if (strncmp(entry->template_name, template_name,
> + strlen(entry->template_name)) == 0) {
> + *template_entry = entry;
> + return 0;
> + }
> + }
> + return -EINVAL;
> +}
> +EXPORT_SYMBOL_GPL(integrity_find_template);

Is this an appropriate place for an ERR_PTR() to get used?

-- Dave