aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu/fs/xfs/FreeBSD
diff options
context:
space:
mode:
Diffstat (limited to 'sys/gnu/fs/xfs/FreeBSD')
-rw-r--r--sys/gnu/fs/xfs/FreeBSD/support/spin.h4
-rw-r--r--sys/gnu/fs/xfs/FreeBSD/xfs_ioctl.c2
-rw-r--r--sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/support/spin.h b/sys/gnu/fs/xfs/FreeBSD/support/spin.h
index 2b09be477959..e337e32f8f6d 100644
--- a/sys/gnu/fs/xfs/FreeBSD/support/spin.h
+++ b/sys/gnu/fs/xfs/FreeBSD/support/spin.h
@@ -33,10 +33,10 @@ static __inline register_t
mutex_spinlock(lock_t *lock) { mtx_lock(lock); return 0; }
#endif
-#define mutex_spinunlock(lock,s) \
+#define mutex_spinunlock(lock, s) \
do { \
spin_unlock(lock); \
- if (&s) {} \
+ if (s != 0) {} \
} while (0)
#endif /* __XFS_SUPPORT_SPIN_H__ */
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_ioctl.c b/sys/gnu/fs/xfs/FreeBSD/xfs_ioctl.c
index e668dc1c866e..65a48e465ffc 100644
--- a/sys/gnu/fs/xfs/FreeBSD/xfs_ioctl.c
+++ b/sys/gnu/fs/xfs/FreeBSD/xfs_ioctl.c
@@ -391,7 +391,7 @@ xfs_readlink_by_handle(
struct uio auio;
struct inode *inode;
xfs_fsop_handlereq_t hreq;
- xfs_vnode_t *vp;
+ xfs_vnode_t *vp = NULL;
__u32 olen;
if (!capable(CAP_SYS_ADMIN))
diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c b/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
index 683024a6461f..758cdef01adf 100644
--- a/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
+++ b/sys/gnu/fs/xfs/FreeBSD/xfs_mountops.c
@@ -361,7 +361,7 @@ _xfs_vget(mp, ino, flags, vpp)
int flags;
struct vnode **vpp;
{
- xfs_vnode_t *vp;
+ xfs_vnode_t *vp = NULL;
int error;
printf("XVFS_GET_VNODE(MNTTOVFS(mp), &vp, ino, error);\n");