syscall_fs2: fix build with ACCT enabled
authorAlan Cox <alan@linux.intel.com>
Thu, 12 Mar 2015 10:00:30 +0000 (10:00 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 12 Mar 2015 10:00:30 +0000 (10:00 +0000)
Kernel/syscall_fs2.c

index 0290b6d..34d22fc 100644 (file)
@@ -375,7 +375,7 @@ arg_t _acct(void)
                         udata.u_error = EINVAL;
                         return -1;
                 }
-               if (ino->c_flags & CRDONLY) {
+               if (inode->c_flags & CRDONLY) {
                        udata.u_error = EROFS;
                        return -1;
                }