diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2002-09-18 22:35:02 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2002-09-18 22:35:02 +0000 |
| commit | cc51a2b55e072f14c83c5aecc1ecb0359062b8ba (patch) | |
| tree | a1d6b0b09215805f23b22c37780084fcabff8912 /sys/kern | |
| parent | bd395ae8f6e09b39f10c93a1d48ebc41acdedc57 (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/kern_mac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_mac.c b/sys/kern/kern_mac.c index 3eed0a668588..02bfa94b825e 100644 --- a/sys/kern/kern_mac.c +++ b/sys/kern/kern_mac.c @@ -366,12 +366,11 @@ static int mac_policy_register(struct mac_policy_conf *mpc) { struct mac_policy_conf *tmpc; - struct mac_policy_ops *ops; struct mac_policy_op_entry *mpe; int slot; - MALLOC(mpc->mpc_ops, struct mac_policy_ops *, sizeof(*ops), M_MACOPVEC, - M_WAITOK | M_ZERO); + MALLOC(mpc->mpc_ops, struct mac_policy_ops *, sizeof(*mpc->mpc_ops), + M_MACOPVEC, M_WAITOK | M_ZERO); for (mpe = mpc->mpc_entries; mpe->mpe_constant != MAC_OP_LAST; mpe++) { switch (mpe->mpe_constant) { case MAC_OP_LAST: |
