NetLabel: perform input validation earlier on CIPSOv4 DOI add ops
authorPaul Moore <paul.moore@hp.com>
Fri, 15 Dec 2006 21:49:27 +0000 (16:49 -0500)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Dec 2006 19:11:56 +0000 (11:11 -0800)
There are a couple of cases where the user input for a CIPSOv4 DOI add
operation was not being done soon enough; the result was unexpected behavior
which was resulting in oops/panics/lockups on some platforms.  This patch moves
the existing input validation code earlier in the code path to protect against
bogus user input.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found