kernel - Remove unnecessary < 0 checks for sopt_valsize unsigned field + fixup
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 6 Dec 2011 17:21:35 +0000 (09:21 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 6 Dec 2011 17:21:35 +0000 (09:21 -0800)
commit5f659d166599ee5e84be6897b4cd7c630e4cc746
treeb1b5cf1e66c482af2dc33845529cda0d220bf96b
parent9326d624cab8cacdcfc7f39e8003f4136a970577
kernel - Remove unnecessary < 0 checks for sopt_valsize unsigned field + fixup

* Remove unnecessary < 0 checks for sopt_valsize, which is an unsigned field

* Add an upper-bound test in one place which did not have it.

Reported-by: Edward O'callaghan, logan1
sys/kern/uipc_syscalls.c