]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/ia64/kernel/perfmon.c
Merge branch 'next' into for-linus
[karo-tx-linux.git] / arch / ia64 / kernel / perfmon.c
index ea39eba61ef5abcdf087b027879196b49d75bb03..2eda28414abb5a557e559387f6a6b46a76ae6819 100644 (file)
@@ -619,6 +619,7 @@ static struct file_system_type pfm_fs_type = {
        .mount    = pfmfs_mount,
        .kill_sb  = kill_anon_super,
 };
+MODULE_ALIAS_FS("pfmfs");
 
 DEFINE_PER_CPU(unsigned long, pfm_syst_info);
 DEFINE_PER_CPU(struct task_struct *, pmu_owner);
@@ -2221,9 +2222,9 @@ pfm_alloc_file(pfm_context_t *ctx)
        d_add(path.dentry, inode);
 
        file = alloc_file(&path, FMODE_READ, &pfm_file_ops);
-       if (!file) {
+       if (IS_ERR(file)) {
                path_put(&path);
-               return ERR_PTR(-ENFILE);
+               return file;
        }
 
        file->f_flags = O_RDONLY;