patch-2.4.19 linux-2.4.19/fs/intermezzo/ext_attr.c

Next file: linux-2.4.19/fs/intermezzo/kml.c
Previous file: linux-2.4.19/fs/inode.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/fs/intermezzo/ext_attr.c linux-2.4.19/fs/intermezzo/ext_attr.c
@@ -106,9 +106,8 @@
                         printk("InterMezzo: out of memory!!!\n");
                         return -ENOMEM;
                 }
-                error = copy_from_user(buf, buffer, buffer_len);
-                if (error) 
-                        return error;
+                if (copy_from_user(buf, buffer, buffer_len))
+                        return -EFAULT;
             } else 
                 buf = buffer;
         } else

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)