From: Christoph Hellwig Date: Fri, 25 Nov 2005 05:41:47 +0000 (+1100) Subject: [XFS] handle error returns from freeze_bdev X-Git-Tag: v2.6.15-rc4~17^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f33c6797bccc695c4c85885f2c676ad4c8fed98d;p=linux-2.6-omap-h63xx.git [XFS] handle error returns from freeze_bdev SGI-PV: 945483 SGI-Modid: xfs-linux-melb:xfs-kern:201884a Signed-off-by: Christoph Hellwig Signed-off-by: Nathan Scott --- diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 7ceabd0e2d9..d1236d6f404 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c @@ -550,7 +550,7 @@ xfs_fs_goingdown( struct vfs *vfsp = XFS_MTOVFS(mp); struct super_block *sb = freeze_bdev(vfsp->vfs_super->s_bdev); - if (sb) { + if (sb && !IS_ERR(sb)) { xfs_force_shutdown(mp, XFS_FORCE_UMOUNT); thaw_bdev(sb->s_bdev, sb); }