ovl: don't allow writing ioctl on lower layer
[sfrench/cifs-2.6.git] / fs / open.c
index 6d5c9a9b8c8d27671f71a204835abe8d6226677a..7ea118471dce59996ae3d3d9b9e3b9d156baffba 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -670,12 +670,12 @@ SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group)
        if (!f.file)
                goto out;
 
-       error = mnt_want_write_file(f.file);
+       error = mnt_want_write_file_path(f.file);
        if (error)
                goto out_fput;
        audit_file(f.file);
        error = chown_common(&f.file->f_path, user, group);
-       mnt_drop_write_file(f.file);
+       mnt_drop_write_file_path(f.file);
 out_fput:
        fdput(f);
 out: