SGI-PV: 955157
SGI-Modid: xfs-linux-melb:xfs-kern:26869a
Signed-off-by: Vlad Apostolov <vapo@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
                                                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) {