lkml.org 
[lkml]   [2008]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 2/4] integrity: Linux Integrity Module(LIM)
    From
    Date
    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



    \
     
     \ /
      Last update: 2008-11-21 18:47    [W:7.190 / U:0.604 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site