mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Fix build breakage. Initialize error variables explicitely for !MAC case.
Pointy hat to: kib Approved by: re (bz)
This commit is contained in:
parent
9839387616
commit
68889ed699
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224935
@ -270,6 +270,7 @@ ksem_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
|
|||||||
struct ksem *ks;
|
struct ksem *ks;
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
|
error = 0;
|
||||||
ks = fp->f_data;
|
ks = fp->f_data;
|
||||||
mtx_lock(&sem_lock);
|
mtx_lock(&sem_lock);
|
||||||
#ifdef MAC
|
#ifdef MAC
|
||||||
|
@ -699,6 +699,7 @@ shm_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
|
|||||||
struct shmfd *shmfd;
|
struct shmfd *shmfd;
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
|
error = 0;
|
||||||
shmfd = fp->f_data;
|
shmfd = fp->f_data;
|
||||||
mtx_lock(&shm_timestamp_lock);
|
mtx_lock(&shm_timestamp_lock);
|
||||||
#ifdef MAC
|
#ifdef MAC
|
||||||
|
Loading…
Reference in New Issue
Block a user