]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/namei.c
[SCSI] lpfc 8.1.2: Fix panic caused by HBA resets and target side cable pulls
[linux-2.6-omap-h63xx.git] / fs / namei.c
index e28de846c5919f84ba0f45ea464a4ee91913f7a9..557dcf395ca122c1d30ca53b4b36293dab78da1f 100644 (file)
@@ -2224,13 +2224,17 @@ int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_de
  * and other special files.  --ADM
  */
 asmlinkage long sys_linkat(int olddfd, const char __user *oldname,
-                          int newdfd, const char __user *newname)
+                          int newdfd, const char __user *newname,
+                          int flags)
 {
        struct dentry *new_dentry;
        struct nameidata nd, old_nd;
        int error;
        char * to;
 
+       if (flags != 0)
+               return -EINVAL;
+
        to = getname(newname);
        if (IS_ERR(to))
                return PTR_ERR(to);
@@ -2263,7 +2267,7 @@ exit:
 
 asmlinkage long sys_link(const char __user *oldname, const char __user *newname)
 {
-       return sys_linkat(AT_FDCWD, oldname, AT_FDCWD, newname);
+       return sys_linkat(AT_FDCWD, oldname, AT_FDCWD, newname, 0);
 }
 
 /*