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

From: Dave Hansen
Date: Fri Nov 21 2008 - 12:47:10 EST


On Thu, 2008-11-20 at 11:43 -0500, Mimi Zohar wrote:
>
> + rcu_read_lock();
> + rc = integrity_find_template(template_name, &template_entry);
> + if (rc == 0)
> + tget(template_entry);
> + rcu_read_unlock();

This little nugget is repeated over and over. How about an
integrity_find_get_template()?

-- Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/