Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e132f54c authored by Vlad Apostolov's avatar Vlad Apostolov Committed by Tim Shimmin
Browse files

[XFS] pv 955157, rv bnaujok - break the loop on EFAULT formatter() error



SGI-PV: 955157
SGI-Modid: xfs-linux-melb:xfs-kern:26869a

Signed-off-by: default avatarVlad Apostolov <vapo@sgi.com>
Signed-off-by: default avatarTim Shimmin <tes@sgi.com>
parent 22de606a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -635,13 +635,13 @@ xfs_bulkstat(
						ubleft, private_data,
						bno, &ubused, dip, &fmterror);
				if (fmterror == BULKSTAT_RV_NOTHING) {
					if (error == ENOMEM)
						ubleft = 0;
                                        else if (error) {
                                        if (error == EFAULT) {
                                                ubleft = 0;
                                                rval = error;
                                                break;
                                        }
					else if (error == ENOMEM)
						ubleft = 0;
					continue;
				}
				if (fmterror == BULKSTAT_RV_GIVEUP) {