]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commit1fd2a25b77bb6755d38aca50b826ff8dca81d762
tree9f5f8bd5cb99cefa8db812f7182b22da6ecf993c
parentc2fda5fed81eea077363b285b66eafce20dfd45a
NetLabel: perform input validation earlier on CIPSOv4 DOI add ops

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>
net/netlabel/netlabel_cipso_v4.c