diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2005-09-19 16:51:43 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2005-09-19 16:51:43 +0000 |
commit | 84d2b7df26aaa4c58367dd2ba8a64bf84a7bb069 (patch) | |
tree | e3c313c0b77fbcc1f434ec162a95a06a9e05a773 /sys/alpha/osf1/osf1_misc.c | |
parent | a56e23da23b802f32e54aa5dadb70caf48a147d2 (diff) |
Notes
Diffstat (limited to 'sys/alpha/osf1/osf1_misc.c')
-rw-r--r-- | sys/alpha/osf1/osf1_misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/alpha/osf1/osf1_misc.c b/sys/alpha/osf1/osf1_misc.c index 63ce5eed5cc41..eacf78a96f8e4 100644 --- a/sys/alpha/osf1/osf1_misc.c +++ b/sys/alpha/osf1/osf1_misc.c @@ -209,8 +209,10 @@ osf1_getsysinfo(td, uap) rpb_size = (unsigned long)&hwrpb->rpb_tbhint - (unsigned long)hwrpb; if(uap->nbytes < rpb_size){ + mtx_lock(&Giant); uprintf("nbytes = %ld, sizeof(struct rpb) = %ld\n", uap->nbytes, rpb_size); + mtx_unlock(&Giant); error = EINVAL; } else { @@ -254,7 +256,9 @@ osf1_setsysinfo(td, uap) break; } default: + mtx_lock(&Giant); uprintf("osf1_setsysinfo called with op=%ld\n", uap->op); + mtx_unlock(&Giant); /*error = EINVAL;*/ } return (error); |