]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/fat/misc.c
Ensure FMODE_NONOTIFY is not set by userspace
[karo-tx-linux.git] / fs / fat / misc.c
index 1736f23563888b2f0225a6add77d45c984270231..970e682ea7548afa8ae807c409772724a398b0d4 100644 (file)
@@ -255,10 +255,7 @@ int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs)
 
        for (i = 0; i < nr_bhs; i++) {
                wait_on_buffer(bhs[i]);
-               if (buffer_eopnotsupp(bhs[i])) {
-                       clear_buffer_eopnotsupp(bhs[i]);
-                       err = -EOPNOTSUPP;
-               } else if (!err && !buffer_uptodate(bhs[i]))
+               if (!err && !buffer_uptodate(bhs[i]))
                        err = -EIO;
        }
        return err;