aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index cfe4de5def89..eef27f21f9ab 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -1262,7 +1262,7 @@ xfs_unmountfs(xfs_mount_t *mp, struct cred *cr)
1262void 1262void
1263xfs_unmountfs_close(xfs_mount_t *mp, struct cred *cr) 1263xfs_unmountfs_close(xfs_mount_t *mp, struct cred *cr)
1264{ 1264{
1265 if (mp->m_logdev_targp != mp->m_ddev_targp) 1265 if (mp->m_logdev_targp && mp->m_logdev_targp != mp->m_ddev_targp)
1266 xfs_free_buftarg(mp->m_logdev_targp, 1); 1266 xfs_free_buftarg(mp->m_logdev_targp, 1);
1267 if (mp->m_rtdev_targp) 1267 if (mp->m_rtdev_targp)
1268 xfs_free_buftarg(mp->m_rtdev_targp, 1); 1268 xfs_free_buftarg(mp->m_rtdev_targp, 1);