]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/xfs/xfs_log_recover.c
[XFS] Catch errors from xfs_imap().
[karo-tx-linux.git] / fs / xfs / xfs_log_recover.c
index 1f83298f90aaec6c9ab42549df3d881a80b7798d..a8039431b86f1a80d0b4d1d919ab5668fa394d75 100644 (file)
@@ -2282,7 +2282,9 @@ xlog_recover_do_inode_trans(
                 * invalidate the buffer when we write it out below.
                 */
                imap.im_blkno = 0;
-               xfs_imap(log->l_mp, NULL, ino, &imap, 0);
+               error = xfs_imap(log->l_mp, NULL, ino, &imap, 0);
+               if (error)
+                       goto error;
        }
 
        /*