On Sun, Oct 09, 2011 at 03:53:44PM +0400, Alexander V. Chernikov wrote:
A> Understood. So can we use more descriptive ENOENT in code below?
A> 
A>         tag = m_tag_locate(m, MTAG_IPFW_RULE, 0, NULL);
A>         if (tag == NULL) {
A>                 NG_FREE_M(m);
A>                 return (EINVAL);        /* XXX: find smth better */
A>         };

Let you decide that. However, you can first analyze other places in kernel,
where m_tag_locate() really should succeed but fails. After that you probably
would want to have the same error return value in all these places :)

A> Please see an attached patch

Patch is ok from my view.

-- 
Totus tuus, Glebius.
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to